#38898 [Opn->Csd]: #38431 once again (xmlrpc segfault)
| From: | tony2001@php.net | Date: | Mon, 25 Sep 2006 11:20:05 +0000 |
| Subject: | #38898 [Opn->Csd]: #38431 once again (xmlrpc segfault) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102631@lists.php.net to get a copy of this message | ||
ID: 38898
Updated by: tony2001@php.net
Reported By: grzegorz dot nosek at netart dot pl
-Status: Open
+Status: Closed
Bug Type: XMLRPC-EPI related
Operating System: Linux
PHP Version: 5.1.6
New Comment:
5.2 is the next PHP5 release, there are no 5.1.x releases planned.
Previous Comments:
------------------------------------------------------------------------
[2006-09-25 11:14:59] grzegorz dot nosek at netart dot pl
I see that 5.2-cvs has the fix applied so I assume it works (if it
doesn't, it's a different issue). Unfortunately, I am not in position
to test it. However, I think that it is 5.1.7 material and should be
incorporated in the next 5.1 release.
------------------------------------------------------------------------
[2006-09-23 11:37:22] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-09-20 13:12:56] grzegorz dot nosek at netart dot pl
Description:
------------
Guys, you broke it again in 5.1.5 (5.1.6 is still broken, btw.)
This patch seems to fix it. Why was it reverted?
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlrpc/xmlrpc-epi-php.c?r1=1.39.2.5&r2=1.39.2.6
Is there any reason for the commit linked below?
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlrpc/xmlrpc-epi-php.c?view=log#rev1.39.2.7
Test case below, taken from 5.1.6 distribution
(ext/xmlrpc/tests/bug38431.phpt), fails with a segfault.
Reproduce code:
---------------
--TEST--
Bug #38431 (xmlrpc_get_type() crashes PHP on objects)
--SKIPIF--
<?php if (!extension_loaded("xmlrpc")) print "skip"; ?>
--FILE--
<?php
var_dump(xmlrpc_get_type(new stdclass));
var_dump(xmlrpc_get_type(array()));
$var = array(1,2,3);
var_dump(xmlrpc_get_type($var));
$var = array("test"=>1,2,3);
var_dump(xmlrpc_get_type($var));
$var = array("test"=>1,"test2"=>2);
var_dump(xmlrpc_get_type($var));
echo "Done\n";
?>
--EXPECTF--
string(5) "array"
string(5) "array"
string(5) "array"
string(5) "mixed"
string(6) "struct"
Done
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38898&edit=1