PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Compat » Bug #3499

the function ibase_timefmt was removed in PHP 5

Details

Request #3499the function ibase_timefmt was removed in PHP 5
Submitted2005-02-16 20:06 UTC
Fromfabio at bs2 dot com dot br
StatusClosed
PackagePHP_Compat
PHP Version5.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;