From: jblaguarigue at worldonline dot fr
Operating system: Windows XP
PHP version: 5.2.1
PHP Bug Type: *General Issues
Bug description: Abort during PHP request
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 bug report at http://bugs.php.net/?id=40613&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40613&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40613&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40613&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40613&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40613&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40613&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40613&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40613&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40613&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40613&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40613&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40613&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40613&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40613&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40613&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40613&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40613&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40613&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40613&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40613&r=mysqlcfg