Bug #14998 Updated: Can't name a class 'Directory'
| From: | torben@php.net | Date: | Tue, 12 Mar 2002 01:06:56 +0000 |
| Subject: | Bug #14998 Updated: Can't name a class 'Directory' | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-2267@lists.php.net to get a copy of this message | ||
ID: 14998
Updated by: torben@php.net
-Summary: Can't name a class 'Directory'
Reported By: dan@boxuk.com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Red Hat Linux 7.0
PHP Version: 4.0.5
New Comment:
This bug has been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-03-04 11:47:28] adam@elysium.ltd.uk
This one just bit me for 20 minutes as well. A documentation change
would be quite helpful (Also, I think this is something that would
generally be happier in PEAR or similar, but that's a diffrent problem
:).
------------------------------------------------------------------------
[2002-01-11 13:54:29] jan@php.net
See http://www.php.net/manual/en/function.get-declared-classes.php.
It
is predefined. Should be pointed out more clearly, -> documentation
problem.
------------------------------------------------------------------------
[2002-01-11 12:17:37] dan@boxuk.com
For example, given the code:
<?
class Directory
{
// CONSTRUCTOR
function Directory($req_id = FALSE)
{
// nothing
}
}
?>
PHP gives the error: "Cannot redeclare class directory". Maybe the the
dir() function/class interferes??
Configuration:
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs'
'--with-exec-dir=/usr/bin' '--with-config-file-path=/etc/httpd'
'--with-regex=system' '--enable-debugger' '--enable-magic-quotes'
'--enable-sysvshm' '--with-dom' '--enable-force-cgi-redirect'
'--enable-sigchild' '--with-wddx' '--enable-inline-optimization'
'--with-gnu-ld' '--enable-bcmath' '--enable-crypt'
'--with-xml'
'--with-sablot' '--enable-dbg=shared' '--with-dbg-profiler'
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14998&edit=1