#33845 [Opn->Fbk]: segmentation fault
| From: | johannes@php.net | Date: | Sun, 24 Jul 2005 11:26:45 +0000 |
| Subject: | #33845 [Opn->Fbk]: segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82381@lists.php.net to get a copy of this message | ||
ID: 33845
Updated by: johannes@php.net
Reported By: z333r at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux
PHP Version: 5.0.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-07-24 13:22:50] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33845&edit=1