|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31454 session_set_save_handler crashes PHP when supplied non-existent object ref.
Submitted: 2005-01-09 15:37 UTC Modified: 2005-01-09 18:58 UTC
From: Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 33 = ?
Subscribe to this entry?

 [2005-01-09 15:37 UTC]
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:

class Foo {
	function Foo() {
			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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-09 18:58 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 04:01:29 2024 UTC