#30108 [NEW]: __call doesn't set arguments to a class property properly
| From: | saleh at sfsj dot net | Date: | Thu, 16 Sep 2004 08:33:14 +0000 |
| Subject: | #30108 [NEW]: __call doesn't set arguments to a class property properly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66271@lists.php.net to get a copy of this message | ||
From: saleh at sfsj dot net
Operating system: Windows XP sp1
PHP version: 5.0.1
PHP Bug Type: Zend Engine 2 problem
Bug description: __call doesn't set arguments to a class property properly
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 bug report at http://bugs.php.net/?id=30108&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30108&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30108&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30108&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30108&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30108&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30108&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30108&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30108&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30108&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30108&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30108&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30108&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30108&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30108&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30108&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30108&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30108&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30108&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30108&r=mysqlcfg