Annotation of embedaddon/php/tests/classes/autoload_020.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Ensure __autoload() is triggered during unserialization.
! 3: --FILE--
! 4: <?php
! 5: function __autoload($name)
! 6: {
! 7: echo "in autoload: $name\n";
! 8: }
! 9:
! 10: var_dump(unserialize('O:1:"C":0:{}'));
! 11: ?>
! 12: --EXPECTF--
! 13: in autoload: C
! 14: object(__PHP_Incomplete_Class)#%d (1) {
! 15: ["__PHP_Incomplete_Class_Name"]=>
! 16: string(1) "C"
! 17: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>