ID:               35592
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mrethers at ebcubes dot com
 Status:           Feedback
 Bug Type:         PDO related
 Operating System: Windows XP SP2
 PHP Version:      5.1.1
 Assigned To:      wez
 New Comment:

Hmm. Still getting a crash and the same backtraces with snapshot built
On: Dec 14, 2005 11:30 GMT (SQLBindParameter with
pdo_odbc.connection_pooling=off, SQLDriverConnectW with
pdo_odbc.connection_pooling=strict or relaxed).

mrethers, what version of odbc32.dll is installed on your system?

Dan's system(crashes):  3.520.9042.0
Wez's system(no crash): 3.525.1117.0


Previous Comments:
------------------------------------------------------------------------

[2005-12-14 06:03:42] [EMAIL PROTECTED]

I couldn't reproduce the issue, but by working with Dan, did manage to
get a couple of backtraces that highlighted some code that might cause
something like this to happen.

Please try the next snapshot dated after this message to see if that
nailed it.

------------------------------------------------------------------------

[2005-12-12 22:49:23] [EMAIL PROTECTED]

Confirmed the problem here with php5-win32-200512111930.zip from
snaps.php.net, as well as php-5.1.1 Windows binary from php.net,
running PHP CLI (taking Apache out of the equation).

This is with DB2 V8 FixPak 10, using the DB2 sample database cataloged
as a SYSTEM ODBC data source.

Windows XP SP1 with all current (non SP2) fixes.

My slight variation: SELECT * FROM EMPLOYEE works as expected, but
SELECT * FROM FOO.EMPLOYEE (non-existent schema) causes Windows to pop
up one of those handy little "CLI has encountered a problem and needs
to close. Would you like to send this error report to microsoft?"
dialogs.

I would expect an error message like the following:

SQL0204N  "FOO.EMPLOYEE" is an undefined name.  SQLSTATE=42704

------------------------------------------------------------------------

[2005-12-09 05:21:27] [EMAIL PROTECTED]

Can you reproduce this with mssql or access?

------------------------------------------------------------------------

[2005-12-08 22:42:52] [EMAIL PROTECTED]

Assigned to the maintainer.

------------------------------------------------------------------------

[2005-12-08 17:09:17] mrethers at ebcubes dot com

I tried downloading the last snapshot for win32 but it now completely
crashes my applcation. The XML DOM extension seems to be the issue

# Suspected Code
$doc = new DOMDocument;
$doc->Load(CONFIG_PATH);
if (!$doc->validate()) {
    throw new Exception("Mapping file is not valid");
}

Also I still have the DB2/ODBC problem :

# Problematic code example
try {
  $dbh = new PDO('odbc:TEST', 'user', 'password');
} catch (Exception $e) {
  echo "Failed: " . $e->getMessage();
}
$stmt = $dbh->query("SELECT * FROM Table1");
$stmt->setFetchMode(PDO::FETCH_ASSOC);
$rs = $stmt->fetchAll();
echo count($rs) . " : ";

when correct query should be SELECT * FROM SCHEMA1.Table1
crashes Apache before $stmt->setFetchMode(PDO::FETCH_ASSOC);

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35592

-- 
Edit this bug report at http://bugs.php.net/?id=35592&edit=1

Reply via email to