note 89962 deleted from datetime.modify by danielc

From: Date: Sun, 25 Apr 2010 17:09:50 +0000
Subject: note 89962 deleted from datetime.modify by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168623@lists.php.net to get a copy of this message
Note Submitter: Anodyne ---- As far as I can tell, the documentation for date_modify seems to be inconsistent with the functionality exhibited in PHP 5.2.9 (and perhaps other versions) I was trying to figure out why a call to date_modify was returning null in PHP 5.2.9. An older version of the documentation for date_modify at http://php.chinaunix.net/manual/zh/function.date-modify.php (for PHP 5 >= 5.1.0) explains that date_modify returns NULL on success, or FALSE on failure. I suspect the new version of date_modify returns a DateTime object instead of null or false: PRESUMABLY NEW: DateTime date_modify ( DateTime $object , string $modify ) OLD: null/boolean date_modify ( DateTime $object , string $modify )

« previous php.notes (#168623) next »