Bug #66076 [Com]: Segfault on SimpleXML toString

From: Date: Mon, 11 Nov 2013 02:04:24 +0000
Subject: Bug #66076 [Com]: Segfault on SimpleXML toString
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182694@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66076&edit=1 ID: 66076 Comment by: mengpg2 at engene dot se Reported by: mengpg2 at engene dot se Summary: Segfault on SimpleXML toString Status: Open Type: Bug Package: Reproducible crash Operating System: Linux and MacOS PHP Version: 5.4.21 Block user comment: N Private report: N New Comment: This seems related to bug 62328. I undoed that patch which fixed my problem but gave me a... ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Bug #62328 (implementing __toString and a cast to string fails) [ext/xml/tests/bug62328.phpt] ===================================================================== Previous Comments: ------------------------------------------------------------------------ [2013-11-11 01:25:46] mengpg2 at engene dot se Description: ------------ Hi, I use far too old PHP libs for AWS and when upgrading from 5.3 to 5.4.21 I noticed that the string typecast made the entire PHP process segfault $DDB = new AmazonDynamoDB(); $DDB->use_ssl = false; $Key = array('HashKeyElement' => array(AmazonDynamoDB::TYPE_NUMBER => (string)$itemid)); $Res = $DDB->get_item(array('TableName' => 'pond_item_meta', 'Key' => $Key)); $tt = (string)$Res->body->Item->exif_json->S; [Mon Nov 11 02:02:07 2013] [notice] child pid 27086 exit signal Segmentation fault (11) However, if I undo the patch between 5.4.6 and 5.4.7 in Zend/zend.c it works. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66076&edit=1

« previous php.bugs (#182694) next »