ID: 38898 User updated by: grzegorz dot nosek at netart dot pl Reported By: grzegorz dot nosek at netart dot pl -Status: Feedback +Status: Open Bug Type: XMLRPC-EPI related Operating System: Linux PHP Version: 5.1.6 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2006-09-23 11:37:22] [EMAIL PROTECTED] 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