Jump to content

mktime problem after upgrade to php5.2


algarve4me

Recommended Posts

The function below is throwing an error since I upgraded from php4.3.9 to php5.2. Any ideas what I need to do to get this function working again.

 

ERROR(2)

mktime() expects parameter 1 to be long, string given

 

<?
function mkActiveTime($hr,$min,$sec,$month=false,$day=false,$year=false){
if (function_exists("adodb_mktime")) return adodb_mktime($hr,$min,$sec,$month,$day,$year);
else return mktime($hr,$min,$sec,$month,$day,$year);
}
?>

 

The code is from the activecalendar script. Full source code available here

http://georgiost.users.phpclasses.org/browse/file/7370.html

Link to comment
https://forums.phpfreaks.com/topic/55869-mktime-problem-after-upgrade-to-php52/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.