#33416 [Opn->Fbk]: PHP doesn't like functions named getAll
ID: 33416
Updated by: sniper@php.net
Reported By: shadda at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Class/Object related
Operating System: Windows XP SP2
PHP Version: 5.0.4
New Comment:
Try to come up with one file (combine the includes into one file) and
then shorten it to the bare minimum which still causes the problem. We
can't figure out what's going on when there are all those include's.
Previous Comments:
------------------------------------------------------------------------
[2005-06-21 06:09:42] shadda at gmail dot com
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)
------------------------------------------------------------------------
[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
Thread (3 messages)