From: hawk_master at web dot de
Operating system: Win XP Prof
PHP version: 5.2.6
PHP Bug Type: PDO related
Bug description: Apache crashes with Prepared Statements
Description:
------------
On my Win XP Prof System with Apache 2.2.9 and PHP 5.2.6 Apache will
crashes every time I run my PHP script which includes a Prepared Statement
and "bindParam"
If I replace the code without "bindParam" all is fine.
Reproduce code:
---------------
$dbUpdateUserLdap = $DBO->prepare("UPDATE table_user SET AddressField1 =
:address1, AddressField2 = :address2', pwd = :pwd, AddressField3 =
:address3 WHERE usr = :user");
$dbUpdateUserLdap->bindParam(':user', $loginname);
$dbUpdateUserLdap->bindParam(':pwd', $_POST['PWD']);
$dbUpdateUserLdap->bindParam(':address1', $address1);
$dbUpdateUserLdap->bindParam(':address2', $address2);
$dbUpdateUserLdap->bindParam(':address3', $address3);
$dbUpdateUserLdap->execute();
This same code without "bindParam" will run:
$sql = "UPDATE table_user SET AddressField1='$address1' ,
AddressField2='$address2' , pwd='$_POST[PWD]', AddressField3='$address3'
WHERE usr='$loginname'";
$result = $DBO->exec($sql);
--
Edit bug report at http://bugs.php.net/?id=45857&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45857&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45857&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45857&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45857&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45857&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45857&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45857&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45857&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45857&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45857&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45857&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45857&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45857&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45857&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45857&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45857&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45857&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45857&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45857&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45857&r=mysqlcfg