php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33845 segmentation fault
Submitted: 2005-07-24 13:22 UTC Modified: 2005-08-01 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: z333r at yahoo dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.0.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 37 = ?
Subscribe to this entry?

 
 [2005-07-24 13:22 UTC] z333r at yahoo dot com
Description:
------------
The included simple code causes a segmentation fault.
The fault occurs during the mysql_connect.

My MySQL database works fine. PHP is compiled with MySQL support. This segfault occurs both at the commandline and when my homemade webserver invokes php using the system() call.


Reproduce code:
---------------
<html><body>
foo
<table><tr>
<?
mysql_connect(localhost,"myuser","mypass");
# other stuff here
?>
</table>
<hr>
HTML that never appears in the result.
</html> 

Expected result:
----------------
Not a segfault.

Actual result:
--------------
foo

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-24 13:26 UTC] johannes@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

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.
 [2005-08-01 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: Wed Apr 24 14:01:30 2024 UTC