ID: 10743
Updated by: derick
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 

New and list are language contructs, and not functions in PHP. That's why those don't 
This is not a bug, so bugusfying this report.

Previous Comments:

[2001-05-09 03:42:00] [EMAIL PROTECTED]
Okay.. this has been bugging me for a while..
consider the following:
class test {
function mail () { print ("Bahn"); }
function fopen () { print ("Bahn"); }
function new () { print ("Bahn"); }
function list () { print ("Bahn"); }
$temp = new test;
etc, etc..

This will generate a parse error (expecting `T_STRING') until the new() and list() 
functions are removed from the class.  mail() and fopen() will work.
Now.. my question is why the inconsistency?
Is there some super-secret reasoning behind not letting me name my classes' objects 
the same as only a few predefined functions?
I'm lazy.. you guys took all the good function names.. why must you tease me with 


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to