ID: 33314
Updated by: [EMAIL PROTECTED]
Reported By: gregory dot szorc at case dot edu
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Linux (multiple)
PHP Version: 5CVS-2005-06-12
New Comment:
Ok, if you can reproduce, reopen.
Previous Comments:
------------------------------------------------------------------------
[2007-02-06 03:55:23] gregory dot szorc at case dot edu
As the original reporter of the bug, I would just as soon close it. I
cannot reproduce it outside of the code originally used (I don't even
know if I have a copy of that any more). Since no reproduce exists,
perhaps it is just best to close and see if the problem resurfaces at a
later date.
------------------------------------------------------------------------
[2007-02-06 03:44:27] confins_de_l_univers at yahoo dot fr
I think it's a typo error.
In the Start() method, he use :
$this->$Dynamic = $Dynamic;
but he should use :
$this->Dynamic = $Dynamic;
so $this->Dynamic is not set when he call GetArray() method
------------------------------------------------------------------------
[2007-02-06 01:08:22] xstex2 at hotmail dot com
Any update on this issue?
------------------------------------------------------------------------
[2006-12-14 07:55:17] andrew at azarov dot com
class.php:
<?
class Test
{
var $Dynamic = Array();
function Start()
{
$Dynamic = Array("test"=>"hope")
$this->$Dynamic = $Dynamic;
}
function GetArray()
{
return $this->Dynamic;
}
}
?>
test.php:
<?
require class.php;
$file = new Test();
$file->Start();
print_r($file->Dynamic); // Will result in 'Array()'
$s = $file->GetArray(); // Will result in 'Fatal error: Cannot access
empty property'
print_r($s)
?>
------------------------------------------------------------------------
[2005-06-23 01:00:04] 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".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33314
--
Edit this bug report at http://bugs.php.net/?id=33314&edit=1