This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ romain @MacBook : ~/Documents/workspace/react ] php examples/test-memory.php | |
Run: 1685 | |
Memory: 7424 KiB | |
Run: 3400 | |
Memory: 7680 KiB | |
Run: 5122 | |
Memory: 7680 KiB | |
Run: 6850 | |
Memory: 7680 KiB | |
Run: 8582 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'vendor/autoload.php'; | |
use React\Dns\Resolver\Factory as DnsResolverFactory; | |
use React\HttpClient\ConnectionManager; | |
use React\HttpClient\SecureConnectionManager; | |
use React\HttpClient\Client; | |
use React\EventLoop\Factory as LoopFactory; | |
use React\HttpClient\Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Silex : | |
object(Symfony\Component\HttpFoundation\Session\Session)[128] | |
protected 'storage' => | |
object(Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage)[40] | |
protected 'bags' => | |
array (size=2) | |
'attributes' => | |
object(Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag)[129] | |
private 'name' => string 'attributes' (length=10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = new Application(); | |
$app->get('/', function(Application $app) { | |
$app['session']->set('plop', 'pipi'.mt_rand()); | |
return $app['twig']->render('index.html.twig', array()); | |
}); | |
$app->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
use Ratchet\MessageComponentInterface; | |
use Ratchet\ConnectionInterface; | |
use Ratchet\Server\IoServer; | |
use Ratchet\WebSocket\WsServer; | |
use Ratchet\Wamp\WampServer; | |
use Ratchet\ConnectionInterface as Conn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program received signal SIGSEGV, Segmentation fault. | |
0x000000000081e0c9 in zend_std_object_get_class (object=0x7ffff073bf70) at /usr/local/src/php-5.4.9/Zend/zend_object_handlers.c:1454 | |
1454 return zobj->ce; | |
(gdb) backtrace full | |
#0 0x000000000081e0c9 in zend_std_object_get_class (object=0x7ffff073bf70) | |
at /usr/local/src/php-5.4.9/Zend/zend_object_handlers.c:1454 | |
zobj = 0x7fff00009e61 | |
#1 0x00000000007e9ed0 in zend_get_class_entry (zobject=0x7ffff073bf70) at /usr/local/src/php-5.4.9/Zend/zend_API.c:238 | |
No locals. | |
#2 0x0000000000875f6b in ZEND_INIT_METHOD_CALL_SPEC_VAR_CONST_HANDLER (execute_data=0x7ffff7fa6a10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Imagine | |
{ | |
function open($path) | |
{ | |
return new Image(new \Gmagick($path)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ romain @MacBook : /tmp ] curl -s http://getcomposer.org/installer | php | |
#!/usr/bin/env php | |
[ romain @MacBook : /tmp ] echo $? | |
255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grosroro@grosroro-desktop:~/workspace/MediaVorus$ php composer.phar install | |
Password: | |
Installing dependencies | |
- Package symfony/console (dev-master) | |
Cloning 81b09796160a382f6c01a54f6c7d7e091ae1b7bf | |
- Package symfony/css-selector (dev-master) | |
Cloning 615d450be946a0573b3d7d62cf8dacf63e16eff5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ romain @MacBook : /tmp ] git clone --recursive https://github.com/fabpot/Silex.git | |
Cloning into Silex... | |
remote: Counting objects: 2967, done. | |
remote: Compressing objects: 100% (1033/1033), done. | |
remote: Total 2967 (delta 1795), reused 2712 (delta 1583) | |
Receiving objects: 100% (2967/2967), 718.99 KiB | 458 KiB/s, done. | |
Resolving deltas: 100% (1795/1795), done. | |
Submodule 'vendor/Symfony/Component/BrowserKit' (https://github.com/symfony/BrowserKit) registered for path 'vendor/Symfony/Component/BrowserKit' | |
Submodule 'vendor/Symfony/Component/ClassLoader' (https://github.com/symfony/ClassLoader) registered for path 'vendor/Symfony/Component/ClassLoader' | |
Submodule 'vendor/Symfony/Component/CssSelector' (https://github.com/symfony/CssSelector) registered for path 'vendor/Symfony/Component/CssSelector' |
NewerOlder