From:             wseibert at hxcorp dot com
Operating system: Windows 2k
PHP version:      5CVS-2005-12-08 (snap)
PHP Bug Type:     PDO related
Bug description:  Apache 2.0 Crash with Update command

Description:
------------
Running a UPDATE sql command via PDO crashes Apache.



Reproduce code:
---------------
try
{
     $dbh = new PDO('odbc:DSN=TEST;driver=Driver do Microsoft Access
(*.mdb)','','');
     $results = $dbh->query('UPDATE xd17 SET xd17.CCDate = 20051207,
xd17.CCTime = 1200, xd17.ModifiedDS = 200512071200 WHERE xd17.XTyp17 = 157
AND xd17.X15A = 51921 AND xd157.X105B = 3300');
} catch (PDOException $e) {
        print "Error!: ".$e->getMessage()."<br/>";
        die();
}


Expected result:
----------------
Expected to see changes in DB.

Using exec ($dbh->exec(....) ) instead of query has no effect.  Doesn't
update the DB or crash anything.

SQL statement works find in MS Access.

Actual result:
--------------
Apache.exe - Application Error

The instruction at "0x7c5b97d4" referenced memory at "0x0000000c".  The
memory could no be "written".

-- 
Edit bug report at http://bugs.php.net/?id=35607&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35607&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35607&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35607&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35607&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35607&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35607&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35607&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35607&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35607&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35607&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35607&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35607&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35607&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35607&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35607&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35607&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35607&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35607&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35607&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35607&r=mysqlcfg

Reply via email to