xref: /PHP-8.1/tests/basic/bug71273.phpt (revision f8d79582)
1--TEST--
2Bug #71273 A wrong ext directory setup in php.ini leads to crash
3--FILE--
4<?php
5    /* NOTE this file is required to be encoded in iso-8859-1 */
6
7    $cmd = getenv('TEST_PHP_EXECUTABLE') . " -n -d html_errors=on -d extension_dir=a/�/w -d extension=php_kartoffelbrei.dll -v 2>&1";
8    $out = shell_exec($cmd);
9
10    var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", $out));
11?>
12--EXPECT--
13int(1)
14