|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-23 21:02 UTC] tony2001@php.net
[2007-03-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
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