bug71273.phpt 506 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #71273 A wrong ext directory setup in php.ini leads to crash
  3. --SKIPIF--
  4. <?php
  5. if ("cli" != php_sapi_name()) {
  6. die("skip CLI only");
  7. }
  8. ?>
  9. --FILE--
  10. <?php
  11. /* NOTE this file is required to be encoded in iso-8859-1 */
  12. $cmd = getenv('TEST_PHP_EXECUTABLE') . " -n -d html_errors=on -d extension_dir=a/é/w -d extension=php_kartoffelbrei.dll -v 2>&1";
  13. $out = shell_exec($cmd);
  14. var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", $out));
  15. ?>
  16. ==DONE==
  17. --EXPECTF--
  18. int(1)
  19. ==DONE==