php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32188 Problem when extending a standard class
Submitted: 2005-03-04 11:07 UTC Modified: 2005-03-20 18:11 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: manu at manucorp dot com Assigned:
Status: No Feedback Package: SimpleXML related
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: manu at manucorp dot com
New email:
PHP Version: OS:

 

 [2005-03-04 11:07 UTC] manu at manucorp dot com
Description:
------------
When i extend SimpleXMLElement there is some weird issue on accessing variable of the class. (perhaps related to bug #28817, i'm not completely sure)

Reproduce code:
---------------
<?php
class Reader extends SimpleXMLElement {
	public $test;
	public function extract()
	{
		$this->test=array();
		var_dump(is_array($this->test));
	}
}
$uploadfile="file.xml";
$rs=simplexml_load_file($uploadfile,"Reader");
$rs->extract();

?>

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-04 16:52 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-03-20 18:11 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC