ID: 40613 Updated by: [EMAIL PROTECTED] Reported By: jblaguarigue at worldonline dot fr -Status: Open +Status: Feedback -Bug Type: *General Issues +Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 5.2.1 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2007-02-23 21:01:32] jblaguarigue at worldonline dot fr Description: ------------ >From version 5.2.0 to 5.2.1 my website doesn't have the same functioning. After investigations, the problem provides from a lot of array DOM encapsulations. My site contains classes for HTML with a DOM structure and most of classes are container type. This container is PHP array based. The php script in version 5.2.1 crashes during the script, the same script (with the same data) good works under 5.2.0. Reproduce code: --------------- abstract class Conteneur { private $title; protected $lstObj = array (); protected $className; protected $id; protected $name; abstract public function toHtml(); public function addObject($object) { if (null != $object) { array_push($this->lstObj, $object); } } public function addObjects($objects){ foreach ($objects as $obj){ array_push($this->lstObj, $obj); } } ... class Div extends Conteneur { public function __construct($object = null, $className = null) { $this->addObject($object); $this->className = $className; } ... The crash provides during an addObject method call when adding an object to the Div class. Expected result: ---------------- The complete DOM encapsulation Actual result: -------------- White page, the PHP crashes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40613&edit=1