Skip to content

Instantly share code, notes, and snippets.

; Function Attrs: nounwind ssp uwtable
define i32 @x(%struct._zval_struct* %z) #0 {
%1 = alloca %struct._zval_struct*, align 8
store %struct._zval_struct* %z, %struct._zval_struct** %1, align 8
%2 = load %struct._zval_struct** %1, align 8
%3 = getelementptr inbounds %struct._zval_struct* %2, i32 0, i32 2
%4 = load i8* %3, align 1
%5 = zext i8 %4 to i32
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %12
namespace Phalcon\Mvc;
/**
* Phalcon\Mvc\Dispatcher
*
* Dispatching is the process of taking the request object, extracting the module name,
* controller name, action name, and optional parameters contained in it, and then
* instantiating a controller and calling an action of that controller.
*
*<code>
./buildconf --force
./configure --enable-debug --enable-mbstring --with-gd --with-gmp --with-openssl --with-pdo-mysql --with-config-file-path=/etc --enable-phalcon --with-curl --with-mcrypt
$robots = $manager->executeQuery('SELECT * FROM Robots');
$this->assertInstanceOf('Phalcon\Mvc\Model\Resultset\Simple', $robots);
$this->assertEquals(count($robots), 3);
$this->assertInstanceOf('Robots', $robots[0]);
$robots = $manager->executeQuery('SELECT * FROM Robots ORDER BY 1');
$this->assertInstanceOf('Phalcon\Mvc\Model\Resultset\Simple', $robots);
$this->assertEquals(count($robots), 3);
$this->assertInstanceOf('Robots', $robots[0]);
$this->assertEquals($robots[0]->id, 1);
$status = $manager->executeQuery('UPDATE Subscriptores SET status = "Z" WHERE id > 100');
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
<?php
namespace Phacrm\Portal;
class Module
{
public function registerAutoloaders()
{
<?php
/**
CREATE TABLE robots (
code int,
le_name varchar(100),
);
*/
class Robots extends Phalcon\Mvc\Model {
<?php
$router = new Phalcon\Mvc\Router(false);
$router->add(
"/([a-z]{2})/([0-9]{1,})/:action/:params",
array(
"controller" => 'servers',
"domain" => 1,
"server" => 2,