ID: 49181 Comment by: adaro2000 at yahoo dot fr Reported By: adaro2000 at yahoo dot fr Status: No Feedback Bug Type: PDO related Operating System: Win XP Pro Version 2002 SP2 PHP Version: 5.2.10 New Comment:
Forgive me, please, for being too late. I used another version of Xampp whith Php version 5.2.0. Everything is right now. Thanks a lot. Previous Comments: ------------------------------------------------------------------------ [2009-08-26 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-08-18 06:58:14] ka...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2009-08-07 10:28:00] adaro2000 at yahoo dot fr I run it on command line as suggested. I'm having an error. I have a prompt saying that CLI encouter an error and must .... I run a query like this "SELECT login FROM admin". Everything is OK. But have i run a query of more than one column that the error occure. Any idea ? ------------------------------------------------------------------------ [2009-08-06 20:06:09] j...@php.net Try run the script on command line using the CLI binary. ------------------------------------------------------------------------ [2009-08-06 18:15:52] adaro2000 at yahoo dot fr Description: ------------ I install Xampp xampp-win32-1.7.0-installer. Php version is 5.2.8, Mysql version 5.1.30, Apache version 2.2.11 I'm using PDO to query my database. As i query out a result of more than one column, apache restart, and in log i read : [Thu Aug 06 17:53:23 2009] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Thu Aug 06 17:53:31 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Thu Aug 06 17:53:31 2009] [notice] Digest: generating secret for digest authentication ... [Thu Aug 06 17:53:31 2009] [notice] Digest: done Reproduce code: --------------- This produces an error : <?php $pdo = new PDO('mysql:host=localhost;dbname=data','user','pass'); $result = $pdo->query("SELECT login, pass FROM admin"); $result->setFetchMode(PDO::FETCH_OBJ); foreach ($result AS $line){ echo '<label class="nom">'.$line->login.'</label>'; echo '<label class="rates">'.$line->pass.'</label>'; } ?> Expected result: ---------------- I hope this will print data, but not. I run this without problem : <?php $pdo = new PDO('mysql:host=localhost;dbname=data','user','pass'); $result = $pdo->query("SELECT COUNT(*) as Me FROM admin"); $result->setFetchMode(PDO::FETCH_OBJ); foreach ($result AS $line){ echo '<label class="nom">'.$line->Me.'</label>'; } ?> It prints the exact number. Actual result: -------------- The browser seems to load the page, but i have a prompt Apache HTTP encouter an error and must... and the log is what i show on the top. Can you help me please ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49181&edit=1