php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57923 It's really fixed.
Submitted: 2007-11-21 10:04 UTC Modified: 2007-11-22 14:35 UTC
From: basilio dot vera at softonic dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.1 OS: RHEL4 update 4
Private report: No CVE-ID: None
 [2007-11-21 10:04 UTC] basilio dot vera at softonic dot com
Description:
------------
PHP Version: 5.2.4
Memcache package Version: All
Apache Version: All

I get one Segmentation fault when throwing one exception from the defined as callback function on the addServer method of the Memcache class.



Reproduce code:
---------------
$m = new Memcache();
$m->addServer( 'serverhost', 11211, false, 1, 1, -1, true, 'MyError' );

function MyError( $host, $port )
{
	throw new Exception( "Memcache error on $host:$port" );
}

echo "A: " . $m->get( 'a' );


Expected result:
----------------
Uncatched exception ... "Memcache error on serverhost:11211"

Actual result:
--------------
Blank page and...

[Wed Nov 21 15:07:22 2007] [notice] child pid 5009 exit signal Segmentation fault (11)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-21 10:06 UTC] tony at daylessday dot org
Please provide GDB backtrace.
http://bugs.php.net/bugs-generating-backtrace.php
 [2007-11-21 15:02 UTC] mikael at synd dot info
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2007-11-22 14:35 UTC] basilio dot vera at softonic dot com
Hooray, it works. Thanks a lot!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC