|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-09 18:58 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 04:00:01 2025 UTC |
Description: ------------ When supplying a non-existent object reference as a callback, session_set_save_handler() hangs for a moment and php crashes, taking Apache with it. 5.0.3 win32 release, Apache1 SAPI, recommended ini, no external modules loaded. Also tested with 5.0.2, setup same as above. Reproduce code: --------------- <?php class Foo { function Foo() { session_set_save_handler( array(&$arf, 'open'), array(&$arf, 'close'), array(&$arf, 'read'), array(&$arf, 'write'), array(&$arf, 'destroy'), array(&$arf, 'gc')); } } $foo =& new Foo(); echo 'bar!'; ?> Expected result: ---------------- The string "bar!" should be output. Actual result: -------------- No output, PHP crashes, taking Apache child with it.