From: sandell at slobtrot dot com Operating system: WinXP Pro (SP2) PHP version: 5.0.2 PHP Bug Type: InterBase related Bug description: Apache crashes when inserting a -1 into a Interbase TIMESTAMP field
Description: ------------ When inserting a -1 into a TIMESTAMP field in an interbase 7 database Apache crashes. When looking at the "More info" in the WinXP crash dialog it shows that it was mod "php_interbase.dll" that caused the crash. System setup: Windows XP Pro, SP2 Apache/2.0.50 (Win32) (Win32 bin files downloaded) PHP/5.0.2, extension INTERBASE used in php.ini Interbase 7 (WI-V7.1.0.131), TCP/IP connection (Localhost) No Zend optimizer Note: If a value of 0 (zero) is given in the statement, then all works as expected. Reproduce code: --------------- 1) Create the table "testtable" in a database with one field named "DTField" of type TIMESTAMP. 2) Execute the following code: // Crash Code $db = ibase_connect('','','','None',0,3); $sql = "INSERT INTO TestTable (DTField) VALUES (?)"; $sth = ibase_query($db_intra, $sql, -1); ibase_commit($db); Expected result: ---------------- The table should have a new entry Actual result: -------------- Apache crashes (php_interbase.dll) -- Edit bug report at http://bugs.php.net/?id=30907&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30907&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30907&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30907&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30907&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30907&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30907&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30907&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30907&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30907&r=support Expected behavior: http://bugs.php.net/fix.php?id=30907&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30907&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30907&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30907&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30907&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30907&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30907&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30907&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30907&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30907&r=mysqlcfg