|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-03-23 12:04 UTC] tom at advancedatatools dot com
Description: ------------ When compiling 1.1.0 on unix [linux or solaris] everything functions properly. However when I compile the same set of code including the pdo_informix driver on windows bindParam segfaults. I have tested this from the command line and it returns the same error. The same code runs under linux fine. I compiled the driver with vc++ 6, and all other functionality of the driver works fine. Reproduce code: --------------- $sqlline = "select contributor_name from contributors where contributor_id = ?"; $sth = $dbh->prepare($sqlline); $line = 7; $sth->bindParam(1,$line); $sth->execute(); while ($row = $sth->fetch(PDO::FETCH_NUM)) print_r($row); Expected result: ---------------- The users name Actual result: -------------- Nothing if run from the command line, CGI Header error if run from IIS PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
I have compiled (Visual Studio 6) pdo_informix on Windows and have run the following script: <?php $conn = new PDO("informix:DSN=myDSN", "user", "***"); $sql = "DROP TABLE test"; $stmt = $conn->exec($sql); $sql = "CREATE TABLE test (id INTEGER, data VARCHAR(50))"; $stmt = $conn->exec($sql); $sql = "INSERT INTO test (id, data) VALUES (1, 'Kellen')"; $stmt = $conn->exec($sql); $sql = "SELECT data FROM test WHERE id = ?"; $sth = $conn->prepare($sql); $line = 1; $sth->bindParam(1, $line); $sth->execute(); while ($row = $sth->fetch(PDO::FETCH_NUM)) { print_r($row); } ?> I am seeing no problems with this script. I tried to base it off of your original script. Can you please modify this script and let us know the changes in order to reproduce the defect?I created the file, under windows it returns [in IIS] CGI Error or if run from the command line it just drops back to the command prompt with no returns. On Unix: Array ( [0] => Kellen ) Could there be something with my windows dev system that is preventing it from properly compiling? I would assume in that case the dll would not function at all.