php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40613 Abort during PHP request
Submitted: 2007-02-23 21:01 UTC Modified: 2007-03-03 01:00 UTC
From: jblaguarigue at worldonline dot fr Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.2.1 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jblaguarigue at worldonline dot fr
New email:
PHP Version: OS:

 

 [2007-02-23 21:01 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-23 21:02 UTC] tony2001@php.net
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.


 [2007-03-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC