php5 datetime class not found

Bug #118298 reported by Jim Tarvid
2
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: php5

tarvid@ding:~$ cat dateadd
#!/usr/bin/php5
<?php
$date = new DateTime("2006-12-12");
$date->modify("+1 day");
echo $date->format("Y-m-d");
?>

tarvid@ding:~$ ./dateadd

Fatal error: Class 'DateTime' not found in /home/tarvid/dateadd on line 3
tarvid@ding:~$

Could we have a real 5.2 and yes from Dapper to Feisty?

Revision history for this message
Marco Rodrigues (gothicx) wrote :

You're trying that on Feisty ?!

I think it's only available on 5.2+

Revision history for this message
Jim Tarvid (tarvid) wrote : Re: [Bug 118298] Re: php5 datetime class not found

It has been a compile option since 5.0.

Actually, I expected it to work on 6.06.1 LTS.

It works on Feisty.

The issue may be moot, the server host I have been considering now
supports Feisty.

Jim Tarvid

On 6/1/07, Marco Rodrigues <email address hidden> wrote:
> You're trying that on Feisty ?!
>
> I think it's only available on 5.2+
>
> --
> php5 datetime class not found
> https://bugs.launchpad.net/bugs/118298
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Soren Hansen (soren) wrote :

In php 5.1.2 (which is in Dapper) this feature is experimental (you need to manually add -DEXPERIMENTAL_DATE_SUPPORT to the build (there's not even a switch to configure to enable it)). Hence, we're not going to enable it.

Changed in php5:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.