From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.10
PHP version:      4.1.1
PHP Bug Type:     Reproducible crash
Bug description:  import_request_variables segfault...

Usage of the import_request_variables function more than once with the same
value for the method type and prefix string will produce a segfault.

The example:
<html>
<body>
<?

        @import_request_variables("g", "");
        foreach($_GET as $b=>$c)
                print "Key: $b  |  Value: $c<br>\n";
        flush();
        @import_request_variables("g", "");
        foreach($_GET as $b=>$c)
                print "Key: $b  |  Value: $c<br>\n";
?>
</body>
</html>

The second foreach loop will never be reached and the flush() call will be
ineffectual since the module segfaults and doesn't care about the buffer. 
The segfault only affects the php module and will NOT bring down the
apache server.  Although not shown here for space conservation, if by
chance this is done via an include, the results are mixed.  I have some
that will cause a segfault ans some that don't and I haven't figured out
the difference between them.

Specifics:
  Apache 1.3.22
  Linux 2.4.10 kernel
  PHP running as a DSO with apache using the php.ini-recommended with very
few modifications (available on request if necessary)

Thanks,
 --Robert
-- 
Edit bug report at: http://bugs.php.net/?id=15106&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to