From:             shadda at gmail dot com
Operating system: Windows XP SP2
PHP version:      5.0.4
PHP Bug Type:     Class/Object related
Bug description:  PHP doesn't like functions named getAll

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 bug report at http://bugs.php.net/?id=33416&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33416&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33416&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33416&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33416&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33416&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33416&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33416&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33416&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33416&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33416&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33416&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33416&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33416&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33416&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33416&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33416&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33416&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33416&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33416&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33416&r=mysqlcfg

Reply via email to