mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Also adds an --asan flag to run-tests.php to setup all the necessary environment variables. Some tests are marked as skipped because they are incompatible with asan or too slow. I'm basing this on the DEBUG_ZTS build, which seems to give us the most mileage.
24 lines
631 B
PHP
24 lines
631 B
PHP
--TEST--
|
|
Test ACCEL_LOG_FATAL will cause the process to die even if not logged
|
|
--DESCRIPTION--
|
|
This test forces the opcache to error by setting memory_comsumption very large.
|
|
The resulting ACCEL_LOG_FATAL should cause php to die.
|
|
The process should die regardless of the log_verbosity_level.
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_cache_only=0
|
|
opcache.file_cache_fallback=0
|
|
opcache.memory_consumption=999999999
|
|
opcache.log_verbosity_level=-1
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
if (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump("Script should fail");
|
|
?>
|
|
--EXPECT--
|