php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7378 Segmentation fault with multipart/form-data
Submitted: 2000-10-20 17:37 UTC Modified: 2002-06-16 08:24 UTC
From: david at dravanet dot hu Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.17 OS: Debian Linux
Private report: No CVE-ID: None
 [2000-10-20 17:37 UTC] david at dravanet dot hu
I'm getting segmentation faults when using the phpAds script.
When I'm trying to add a new banner, banneradd.php it gets Internal server error. 
I'm not sure if it's a php problem, maybe it's related with Apache. 

So. I traced that if the HTML FORM submitted with enctype="multipart/form-data" segmentation fault occurs. If I submit the FORM without enctype="multipart/form-data" it's ok. 

I tried it with both php3-cgi and php4-cgi. 

My config: 
Apache/1.3.12 (Unix) Debian/GNU
php3-cgi 3.0.17
phpAds 1.4.0 (same problem with older versions)

What sould I do to trace back the problem, or what's causing that?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-21 16:30 UTC] david at dravanet dot hu
I traced the problem further, and I discovered, that the problem exists with other scripts too...

The Apache replies 500 Internal Server Error if a submit the following script:

test.html:
<form action="test.php" method="POST" enctype="multipart/form-data">
<input type="submit" name="submit" value="Go">
</form>

test.php (Yes, it runs as CGI):
#!/usr/bin/php3
  Hello world!


It's not an apache problem because I tried submitting test.html to a Perl cgi script, and it was OK, so it's related with PHP :(

Anyone could help what is the problem or what should I do?


 [2002-06-16 08:24 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC