php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35375 Empty date and timezone classes breaks PEAR
Submitted: 2005-11-24 23:12 UTC Modified: 2005-11-24 23:31 UTC
From: o dot persson at gmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.0 OS: GNU/Debian Linux
Private report: No CVE-ID: None
 [2005-11-24 23:12 UTC] 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));





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-24 23:31 UTC] o dot persson at gmail dot com
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."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 01:01:28 2024 UTC