#33845 [NEW]: segmentation fault
| From: | z333r at yahoo dot com | Date: | Sun, 24 Jul 2005 11:22:51 +0000 |
| Subject: | #33845 [NEW]: segmentation fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-82380@lists.php.net to get a copy of this message | ||
From: z333r at yahoo dot com
Operating system: Linux
PHP version: 5.0.4
PHP Bug Type: CGI related
Bug description: segmentation fault
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 bug report at http://bugs.php.net/?id=33845&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33845&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33845&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33845&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33845&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33845&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33845&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33845&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33845&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33845&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33845&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33845&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33845&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33845&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33845&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33845&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33845&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33845&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33845&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33845&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33845&r=mysqlcfg