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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 - 39 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat May 18 21:01:33 2024 UTC