|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-19 18:12 UTC] johannes@php.net
[2008-08-27 01:00 UTC] php-bugs at lists dot php dot net
[2008-10-18 20:12 UTC] felipe@php.net
[2008-10-26 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 21:00:01 2025 UTC |
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);