From: k dot zhinko at grape dot ru
Operating system: Windows XP Pro SP2
PHP version: 4.4.2
PHP Bug Type: InterBase related
Bug description: Fetching TIME-type data from views
Description:
------------
I couldn't fetch TIME-type data from views. The query processes correctly
in IBExpert.
Reproduce code:
---------------
<?php
$q = ibase_query('SELECT d.START_TIME FROM VW_SOME_VIEW');
$a = ibase_fetch_assoc($q);
print_r($a['START_TIME']);
echo "\n";
$q = ibase_query('SELECT d.START_TIME FROM VW_SOME_TABLE');
$a = ibase_fetch_assoc($q);
print_r($a['START_TIME']);
?>
Expected result:
----------------
03:44
03:44
Actual result:
--------------
-1
03:44
--
Edit bug report at http://bugs.php.net/?id=36215&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36215&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36215&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36215&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36215&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36215&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36215&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36215&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36215&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36215&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36215&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36215&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36215&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36215&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36215&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36215&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36215&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36215&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36215&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36215&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36215&r=mysqlcfg