RE: PHP 4.0 Bug #6547 Updated: Maths calculation problem

From: Date: Thu, 07 Sep 2000 07:39:35 +0000
Subject: RE: PHP 4.0 Bug #6547 Updated: Maths calculation problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32500@lists.php.net to get a copy of this message
OK. I've identified the problem... All works fine until mktime at the bottom of the codes. In previous version of php, if an argument pass to mktime is an undefined variable, mktime still function well. In this version of php, mktime will return -1. Eg: mktime(7,3,0,$dummy,$dummy,$dummy) Previous versions: return 943916580 php 4.0.2: returns -1 I'm able to solve this by changing the statement to mktime(7,3,0) instead. Note: mktime(7,3,0,0,0,0) will also returns -1 as well. Probably, this is a "bug fixed" in mktime, or a change in behaviour. It does affect the functionality of some buggy scripts. Regards, P.P. Foong Internet Administrator net-linx Asia Pacific Sdn. Bhd. Tel: +60(3) 3827878 ext. 132 Fax: +60(3) 3827879 URL: http://www.net-linx.com > -----Original Message----- > From: Bug Database [mailto:php-dev@lists.php.net] > Sent: Thursday, September 07, 2000 12:55 AM > To: pp.foong@net-linx.com.my > Subject: PHP 4.0 Bug #6547 Updated: Maths calculation problem > > > ID: 6547 > Updated by: stas > Reported By: pp.foong@net-linx.com.my > Status: Feedback > Bug Type: Scripting Engine problem > Assigned To: > Comments: > > Could you please cut down you code and provide example for > only the statement that does not work? >

« previous php.dev (#32500) next »