Discussion:
[PHP-INSTALL] Instance of class DateTime returns empty object
David Keson
2010-12-16 10:55:38 UTC
Permalink
Hello,

we have a problem with the PHP-class DateTime one a Debian-
Server. After we creating a new instance of the class, we get
just an empty object:

$date = new DateTime();
var_dump($date); // object(DateTime)#2 (0) { }

The common methods for the class are available.

On a local machine, DateTime works fine without issues.

Server-specs:
- Debian 5.0.7
- Apache/2.2.9
- PHP Version 5.2.6-1+lenny9

Somebody an idea? Could this be a problem with a config?


Thank you, greetings,
David
Keith Roberts
2010-12-16 12:57:44 UTC
Permalink
Subject: [PHP-INSTALL] Instance of class DateTime returns empty object
Hello,
we have a problem with the PHP-class DateTime one a Debian-
Server. After we creating a new instance of the class, we get
$date = new DateTime();
var_dump($date); // object(DateTime)#2 (0) { }
The common methods for the class are available.
On a local machine, DateTime works fine without issues.
- Debian 5.0.7
- Apache/2.2.9
- PHP Version 5.2.6-1+lenny9
Somebody an idea? Could this be a problem with a config?
You could try comparing both php.ini files using Kdiff3.
That will show the config files in two window panes, with
each difference highlighted.

I'd be lost without Kdiff3 - it's brilliant for comparing
individual config files, or all files in a pair of selected
sub directories.

HTH

Keith Roberts
--
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
Continue reading on narkive:
Loading...