php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30108 __call doesn't set arguments to a class property properly
Submitted: 2004-09-16 10:33 UTC Modified: 2005-01-16 11:37 UTC
From: saleh at sfsj dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.4-dev OS: Windows XP sp1
Private report: No CVE-ID: None
 [2004-09-16 10:33 UTC] 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..

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-13 17:12 UTC] tony2001@php.net
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.
 [2005-01-15 10:13 UTC] saleh at sfsj dot net
works fine now, thanks :)
 [2005-01-16 11:37 UTC] derick@php.net
Then we close it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC