Bug #14998: Can't name a class 'Directory'
| From: | dan at boxuk dot com | Date: | Fri, 11 Jan 2002 17:17:40 +0000 |
| Subject: | Bug #14998: Can't name a class 'Directory' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76672@lists.php.net to get a copy of this message | ||
From: dan@boxuk.com
Operating system: Red Hat Linux 7.0
PHP version: 4.0.5
PHP Bug Type: Class/Object related
Bug description: Can't name a class 'Directory'
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 bug report at: http://bugs.php.net/?id=14998&edit=1