php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33416 PHP doesn't like functions named getAll
Submitted: 2005-06-21 05:47 UTC Modified: 2005-06-29 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: shadda at gmail dot com Assigned:
Status: No Feedback Package: Class/Object related
PHP Version: 5.0.4 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shadda at gmail dot com
New email:
PHP Version: OS:

 

 [2005-06-21 05:47 UTC] 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().


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-21 06:09 UTC] 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 09:08 UTC] sniper@php.net
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.

 [2005-06-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC