ID: 14998 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Red Hat Linux 7.0 PHP Version: 4.0.5 New Comment:
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 :). Previous Comments: ------------------------------------------------------------------------ [2002-01-11 13:54:29] [EMAIL PROTECTED] 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] [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