#35375 [Opn->Bgs]: Empty date and timezone classes breaks PEAR

From: Date: Thu, 24 Nov 2005 22:31:40 +0000
Subject: #35375 [Opn->Bgs]: Empty date and timezone classes breaks PEAR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88882@lists.php.net to get a copy of this message
ID: 35375 User updated by: o dot persson at gmail dot com Reported By: o dot persson at gmail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: GNU/Debian Linux PHP Version: 5.1.0 New Comment: Sorry for that. Got a bit excited I guess. From the UPGRADING file: "Note that the new Date class exists at this point purely to allow the core date extension to adhere to the above convention, although extended functionality is planned for the the class in the future." Previous Comments: ------------------------------------------------------------------------ [2005-11-24 23:12:24] o dot persson at gmail dot com Description: ------------ In PHP 5.1.0 there's a class called 'date' and 'timezone' which returns "Fatal error: Cannot redeclare class date in PEAR/Date.php on line 71". This might be a "problem" in PEAR, but not a fun one then. Listing all classes shows me date and timezone, which looks very empty. Reproduce code: --------------- var_dump(get_declared_classes()); $date = new date; var_dump(get_class_methods($date)); var_dump(get_class_vars($date)); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35375&edit=1

« previous php.bugs (#88882) next »