php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47722 PDO crashes Apache whenever 'show columns' query is executed
Submitted: 2009-03-19 17:24 UTC Modified: 2009-03-27 01:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: cpavlov at ru dot acad dot bg Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.9 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cpavlov at ru dot acad dot bg
New email:
PHP Version: OS:

 

 [2009-03-19 17:24 UTC] cpavlov at ru dot acad dot bg
Description:
------------
If you are using PDO and you try to execute "show columns from `table`" query on Windows, PHP crashes violently and Apache service is shutted down automatically.

All other queries work well.

The bug is reproducible only on some versions of Windows - in this case - Windwos Server 2003.

Reproduce code:
---------------
<?php
    $connection = new PDO('mysql:host=localhost;dbname=dbName', 'theUser', 'thePassword');
    
    $query="SHOW COLUMNS FROM `someTable`";
    
    $result = $connection->query($query);
    var_dump($result);
?>


Expected result:
----------------
Apache crashes - the service is stopped because of too many errors.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-19 23:43 UTC] felipe@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-03-27 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 14:01:33 2024 UTC