#30108 [Opn->Fbk]: __call doesn't set arguments to a class property properly
| From: | tony2001@php.net | Date: | Thu, 13 Jan 2005 16:12:44 +0000 |
| Subject: | #30108 [Opn->Fbk]: __call doesn't set arguments to a class property properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72071@lists.php.net to get a copy of this message | ||
ID: 30108
Updated by: tony2001@php.net
Reported By: saleh at sfsj dot net
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Windows XP sp1
PHP Version: 5.0.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Can't reproduce with latest snapshots.
Previous Comments:
------------------------------------------------------------------------
[2004-09-16 10:33:06] saleh at sfsj dot net
Description:
------------
what I want to achive is to store the arguments passed to the
overloaded method in a property but it seems that it sets NULL
instead!
also a strange behavior sometimes occur! sometimes when I want to see
the content of the property which is supposed to have the arguments
(the one taking NULL instead) apache fails and other times it works!
I have pointed where it works and where it fails in the repreducing
code..
when it fails, Windows shows that apache encountered a problem and it
has to be closed, but it doesn't force closing apache and I can still
continue my work without restarting the server ..
I am not sure if it's legal in the first place to set arguments values
to properties inside __call method but if it was illegal, I guess a
"fatal error" message would be more friendly than seeing an apache
failur message from windows :)
I am not sure why it's behaving like that!
Apache version: 1.3.27
php is not installed as a CGI ..
Reproduce code:
---------------
http://www.sfsj.net/__call_problem.php
Expected result:
----------------
I excpet to see the arguments printed and stored in the property "args"
Actual result:
--------------
if it works, it doesn't set the arguments and sets NULL instead..
and sometimes it fails apache and doesn't show anything..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30108&edit=1