Home » PHP » PHP_Compat » Bug #3499
the function ibase_timefmt was removed in PHP 5
Details
| Request #3499 | the function ibase_timefmt was removed in PHP 5 |
|---|---|
| Submitted | 2005-02-16 20:06 UTC |
| From | fabio at bs2 dot com dot br |
| Status | Closed |
| Package | PHP_Compat |
| PHP Version | 5.0.0 |
| Roadmaps | (Not assigned) |
Comments
[2005-02-16 20:06 UTC] fabio at bs2 dot com dot br
Description:
------------
the function ibase_timefmt was removed in PHP 5, and MDB use this function.
you can do some thing as this:
if (!function_exists('ibase_timefmt')):
function ibase_timefmt($format ,$columntype = IBASE_TIMESTAMP){
switch (type) {
case IBASE_TIMESTAMP:
ini_set('ibase.dateformat' ,$format);
break;
case IBASE_DATE:
ini_set('ibase.dateformat' ,$format);
break;
case IBASE_TIME:
ini_set('ibase.timeformat' ,$format);
break;
default:
return false;
}
return true;
}
endif;