method names matching construct names throw parser errors

From: Date: Wed, 18 Apr 2001 03:12:22 +0000
Subject: method names matching construct names throw parser errors
Groups: php.dev 
Request: Send a blank email to php-dev+get-51848@lists.php.net to get a copy of this message
What is the chance this will change? class foo { function fopen() { echo "fopen()\n" ; } } is perfectly valid, but class foo { function include() { echo "include()\n" ; } } throws parser error ('expecting T_STRING...'). This is quite annoying. cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

« previous php.dev (#51848) next »