1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/opcache/tests/bug75357.phpt
2020-02-03 22:52:20 +01:00

42 lines
748 B
PHP

--TEST--
Bug #75357 (segfault loading WordPress wp-admin)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function wp_slash( $value ) {
if ( is_array( $value ) ) {
foreach ( $value as $k => $v ) {
if ( is_array( $v ) ) {
$value[$k] = wp_slash( $v );
} else {
$value[$k] = addslashes( $v );
}
}
} else {
$value = addslashes( $value );
}
return $value;
}
function addslashes_gpc($gpc) {
return wp_slash($gpc);
}
var_dump(addslashes_gpc(array(array("test"))));
?>
--EXPECT--
array(1) {
[0]=>
array(1) {
[0]=>
string(4) "test"
}
}