Bug #14998 Updated: Can't name a class 'Directory'

From: Date: Fri, 11 Jan 2002 18:54:29 +0000
Subject: Bug #14998 Updated: Can't name a class 'Directory'
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76676@lists.php.net to get a copy of this message
ID: 14998 Updated by: jan Old Summary: Can't name a class 'Directory' Reported By: dan@boxuk.com 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] 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

« previous php.dev (#76676) next »