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
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: saleh at sfsj dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC