cvs: php-src(PHP_5_0) /ext/standard/tests/serialize autoload_implements.p5c autoload_interface.p5c bug30234.phpt

From: Date: Sun, 26 Sep 2004 18:29:46 +0000
Subject: cvs: php-src(PHP_5_0) /ext/standard/tests/serialize autoload_implements.p5c autoload_interface.p5c bug30234.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28783@lists.php.net to get a copy of this message
helly Sun Sep 26 14:29:46 2004 EDT Added files: (Branch: PHP_5_0) /php-src/ext/standard/tests/serialize autoload_implements.p5c autoload_interface.p5c bug30234.phpt Log: MFH add new tests http://cvs.php.net/co.php/php-src/ext/standard/tests/serialize/autoload_implements.p5c?r=1.1&p=1 Index: php-src/ext/standard/tests/serialize/autoload_implements.p5c +++ php-src/ext/standard/tests/serialize/autoload_implements.p5c <?php class autoload_implements implements autoload_interface { function testFunction() { return true; } } ?> http://cvs.php.net/co.php/php-src/ext/standard/tests/serialize/autoload_interface.p5c?r=1.1&p=1 Index: php-src/ext/standard/tests/serialize/autoload_interface.p5c +++ php-src/ext/standard/tests/serialize/autoload_interface.p5c <?php interface autoload_interface { function testFunction(); } ?> http://cvs.php.net/co.php/php-src/ext/standard/tests/serialize/bug30234.phpt?r=1.1&p=1 Index: php-src/ext/standard/tests/serialize/bug30234.phpt +++ php-src/ext/standard/tests/serialize/bug30234.phpt --TEST-- #30234 (__autoload() not invoked for interfaces) --SKIPIF-- <?php if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); ?> --FILE-- <?php function __autoload($class_name) { require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c'); echo __FUNCTION__ . '(' . $class_name . ")\n"; } var_dump(interface_exists('autoload_interface', false)); var_dump(class_exists('autoload_implements', false)); $o = unserialize('O:19:"Autoload_Implements":0:{}'); var_dump($o); var_dump($o instanceof autoload_interface); unset($o); var_dump(interface_exists('autoload_interface', false)); var_dump(class_exists('autoload_implements', false)); ?> ===DONE=== --EXPECTF-- bool(false) bool(false) __autoload(autoload_interface) __autoload(Autoload_Implements) object(autoload_implements)#%d (0) { } bool(true) bool(true) bool(true) ===DONE===

« previous php.cvs (#28783) next »