Created
October 19, 2012 04:16
-
-
Save inez/3916197 to your computer and use it in GitHub Desktop.
Inconsistency between HipHop Virtual Machine and Zend PHP
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
inez@ubuntu:/var/www/mw/tests/phpunit/aa$ sudo /home/inez/HH/dev/hiphop-php/src/hhvm/hhvm Autoload.php | |
Second loader! | |
object(A)#3 (0) { | |
} | |
inez@ubuntu:/var/www/mw/tests/phpunit/aa$ php Autoload.php | |
First loader! | |
object(A)#3 (0) { | |
} | |
inez@ubuntu:/var/www/mw/tests/phpunit/aa$ |
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 A { | |
} |
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 | |
spl_autoload_register(function ($class) { | |
echo "First loader!\n"; | |
include $class . '.class.php'; | |
}); | |
spl_autoload_register(function ($class) { | |
echo "Second loader!\n"; | |
include $class . '.class.php'; | |
}); | |
var_dump(new A()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment