ID:               33416
 User updated by:  shadda at gmail dot com
 Reported By:      shadda at gmail dot com
 Status:           Open
 Bug Type:         Class/Object related
 Operating System: Windows XP SP2
 PHP Version:      5.0.4
 New Comment:

Also, I've done a thorough search of my code to check for a lose method
that may have been overriding it. No such luck. For now I guess I'll
just rename it. (Though I'm still skeptical it's not just me doing
something retarded)


Previous Comments:
------------------------------------------------------------------------

[2005-06-21 05:47:12] shadda at gmail dot com

Description:
------------
While writing a small abstraction layer for my application, I noticed
that a variable was not being set to the return value of a class
method. After several tests I was able to determine without a doubt
that this error was being caused merely by the name of the class
method. 

As shown here, 
http://mycrap.tradedaemon.com/bugs/test2.php

In the above url, I've named the method getAlls(). Notice the populated
array at the bottom.

http://mycrap.tradedaemon.com/bugs/test1.php

In the next example, i've named it back to getAll(). Notice the LACK of
a populated array at the bottom. I've spent the last hour and a half
writing other examples to make sure I wasn't missing something, but
sure enough, php does not like methods named getAll().



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33416&edit=1

Reply via email to