Return to bug17115.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 1: --TEST-- ! 2: Bug #17115 (lambda functions produce segfault with static vars) ! 3: --FILE-- ! 4: <?php ! 5: $func = create_function('',' ! 6: static $foo = 0; ! 7: return $foo++; ! 8: '); ! 9: var_dump($func()); ! 10: var_dump($func()); ! 11: var_dump($func()); ! 12: ?> ! 13: --EXPECT-- ! 14: int(0) ! 15: int(1) ! 16: int(2)