[solved] XAMPP 1.70 & PHP PDO: "document contains no data."
Posted: 24. February 2009 23:58
First off, kudos for a great webdevelopment package. Been gratefully using it on a daily basis for years! However, I'm experiencing a weird problem with version 1.7.0, quite possibly a bug, and I was hoping somebody can enlighten me with a solution. Here's the deal. I recently had to reinstall Windows XP (SP3) and thus also installed the latest version of XAMPP (1.7.0). Everything went fine, most of my local sites work, except for some of them that use PHP's PDO extension. Firefox says:
After some debugging I found that this code was apparently causing the error:
So, I tried some example PDO code (3 lines), pulled from PHP.net, which gave the exact same result. I then tried my original code on a Linux live server (hosted), also with PHP 5.2.8 and it did work! Then I went on to download XAMPP 1.6.8 (with PHP 5.2.6). To my surprise (or perhaps not ) the original code worked like a charm, again.
So, in the good spirit of elimination, I'm inclined to believe there's a bug in the Windows version of PHP 5.2.8 / PDO that's bundled with XAMPP 1.7.0.
Can anybody confirm this? Any insights? Thanks!
- Code: Select all
Page Load Error
The document contains no data.
The network link was interrupted while negotiating a connection. Please try again.
After some debugging I found that this code was apparently causing the error:
- Code: Select all
$dbh->query("SELECT * FROM blog")
So, I tried some example PDO code (3 lines), pulled from PHP.net, which gave the exact same result. I then tried my original code on a Linux live server (hosted), also with PHP 5.2.8 and it did work! Then I went on to download XAMPP 1.6.8 (with PHP 5.2.6). To my surprise (or perhaps not ) the original code worked like a charm, again.
So, in the good spirit of elimination, I'm inclined to believe there's a bug in the Windows version of PHP 5.2.8 / PDO that's bundled with XAMPP 1.7.0.
Can anybody confirm this? Any insights? Thanks!