php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49181 Parent: child process exited with status 3221225477 -- Restarting
Submitted: 2009-08-06 18:15 UTC Modified: 2009-08-26 01:00 UTC
From: adaro2000 at yahoo dot fr Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.10 OS: Win XP Pro Version 2002 SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: adaro2000 at yahoo dot fr
New email:
PHP Version: OS:

 

 [2009-08-06 18:15 UTC] 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 ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-06 20:06 UTC] jani@php.net
Try run the script on command line using the CLI binary.
 [2009-08-07 10:28 UTC] 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-18 06:58 UTC] kalle@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-26 01:00 UTC] 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-10-26 17:25 UTC] adaro2000 at yahoo dot fr
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 13:01:35 2025 UTC