mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
40bd84d3e3
We have to check whether _SERVER is actually an array before we're going to use it as such.
13 lines
270 B
PHP
13 lines
270 B
PHP
--TEST--
|
|
Bug #76643 (Segmentation fault when using `output_add_rewrite_var`)
|
|
--FILE--
|
|
<?php
|
|
$_SERVER = 'foo';
|
|
output_add_rewrite_var('bar', 'baz');
|
|
?>
|
|
<form action="http://example.com/"></form>
|
|
===DONE===
|
|
--EXPECT--
|
|
<form action="http://example.com/"></form>
|
|
===DONE===
|