Skip to content

Instantly share code, notes, and snippets.

@salathe
Created May 19, 2014 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salathe/32f1eecbb3acb12eb6be to your computer and use it in GitHub Desktop.
Save salathe/32f1eecbb3acb12eb6be to your computer and use it in GitHub Desktop.
root@4a7e05606bd1:/# cat foo.php
<?php
class MySocketServer { function run() {} }
(new MySocketServer)->run();
root@4a7e05606bd1:/# php foo.php
root@4a7e05606bd1:/# echo $?
0
root@4a7e05606bd1:/# php -v
PHP 5.4.28-1~dotdeb.1 (cli) (built: May 7 2014 22:16:44)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment