Description of problem: Php segfault when there is a pdo error. Version-Release number of selected component (if applicable): php-pdo How reproducible: <? $oDB= new PDO('mysql:host=localhost;dbname=mysql', 'your_username','your_password'); // emulated or not does not matter $oDB->setAttribute(PDO :: ATTR_EMULATE_PREPARES, true); $oStm = $oDB->prepare("SELECT * FROM user WHERE user=:character_set"); $oStm->bindParam(':character_set', "some"); ?> bindParam requires reference (error) Steps to Reproduce: 1. Change to correct username and password 2. Start script through command line (php test.php) or through web 3. php segfault or httpd segfaults Actual results: Fatal error: Cannot pass parameter 2 by reference in test.php on line 7 Segmentation fault Expected results: Fatal error: Cannot pass parameter 2 by reference in test.php on line 7 Additional info: PHP bug report: http://bugs.php.net/bug.php?id=37445 PHP cvs diff: http://news.php.net/php.cvs/39679
Created attachment 292513 [details] Patch fixing segfault
Thanks for the report.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0226.html