php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14998 Can't name a class 'Directory'
Submitted: 2002-01-11 12:17 UTC Modified: 2002-03-11 20:06 UTC
From: dan at boxuk dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.5 OS: Red Hat Linux 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dan at boxuk dot com
New email:
PHP Version: OS:

 

 [2002-01-11 12:17 UTC] dan at boxuk dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-11 13:54 UTC] 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-03-04 11:47 UTC] adam at elysium dot ltd dot 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-03-11 20:06 UTC] torben@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 22:01:27 2024 UTC