#34519 [Bgs]: Unexpected return value

From: Date: Fri, 16 Sep 2005 15:43:15 +0000
Subject: #34519 [Bgs]: Unexpected return value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85164@lists.php.net to get a copy of this message
ID: 34519 User updated by: douglas at gcoders dot net Reported By: douglas at gcoders dot net Status: Bogus Bug Type: Date/time related Operating System: FreeBSD PHP Version: 5.1.0RC1 New Comment: Yes, before 5.1, expected return is -1 instead of FALSE Previous Comments: ------------------------------------------------------------------------ [2005-09-16 04:57:18] derick@php.net The behavior is correct, although it is different from < PHP 5.1.0. ------------------------------------------------------------------------ [2005-09-16 01:56:18] douglas at gcoders dot net Sorry, expect result is bool(FALSE) not bool(NULL) ------------------------------------------------------------------------ [2005-09-16 01:53:25] douglas at gcoders dot net Description: ------------ When using mktime(0, 0, 0, 0, 0, 0), the returned value is different of expected. ONLY after update to 5.1RC1, before, it's ok. Reproduce code: --------------- <?php $ts = mktime(0, 0, 0, 0, 0, 0); var_dump($ts); Expected result: ---------------- bool(NULL) Actual result: -------------- int(943920000) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34519&edit=1

« previous php.bugs (#85164) next »