Menu

#2 Unrecognized format when creating a CDate should WARN

open
nobody
None
5
2006-10-10
2006-10-10
Dan
No

$date = new CDate("1177423200");
Should fail - the timestamp is a STRING, not an INT.

It should either throw an exception or an E_WARNING
type thing.

It SHOULD NOT simply assume 0 as the date.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.