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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: o dot persson at gmail dot com
New email:
PHP Version: OS:

 

 [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: Thu Nov 21 20:01:29 2024 UTC