ID: 14998
Updated by: jan
Old Summary: Can't name a class 'Directory'
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Class/Object related
Bug Type: Documentation problem
Operating System: Red Hat Linux 7.0
PHP Version: 4.0.5
New Comment:

See http://www.php.net/manual/en/function.get-declared-classes.php. It
is predefined. Should be pointed out more clearly, -> documentation
problem.


Previous Comments:
------------------------------------------------------------------------

[2002-01-11 12:17:37] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
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