diff options
author | Anatol Belski <ab@php.net> | 2017-08-19 02:01:03 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-08-19 02:01:03 +0200 |
commit | 97ed208cfd556574e06e98305b9a4cb002891a3f (patch) | |
tree | 4bcca39c8362d4b75e15ebf2843cebd3d24fbb1d /tests | |
parent | 5ef63b6f0ea3f98537d6fba7ae28f7d1c3e6fbfd (diff) | |
parent | 71b12940d0349e58f8719a22e0d4667f19c13dcf (diff) | |
download | php-git-97ed208cfd556574e06e98305b9a4cb002891a3f.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fix issues with phpt and EXTENSION on windows (BUG 75042)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-test/bug75042-2.phpt | 15 | ||||
-rw-r--r-- | tests/run-test/bug75042-3.phpt | 8 | ||||
-rw-r--r-- | tests/run-test/bug75042.phpt | 17 |
3 files changed, 40 insertions, 0 deletions
diff --git a/tests/run-test/bug75042-2.phpt b/tests/run-test/bug75042-2.phpt new file mode 100644 index 0000000000..25f6d08e61 --- /dev/null +++ b/tests/run-test/bug75042-2.phpt @@ -0,0 +1,15 @@ +--TEST-- +phpt EXTENSIONS directive with static module +--SKIPIF-- +<?php +$php = getenv('TEST_PHP_EXECUTABLE'); +if (false === stripos(`$php -n -m`, 'spl')) { + die('skip spl is NOT built static'); +} +--EXTENSIONS-- +SPL +--FILE-- +<?php +var_dump(extension_loaded('spl')); +--EXPECT-- +bool(true) diff --git a/tests/run-test/bug75042-3.phpt b/tests/run-test/bug75042-3.phpt new file mode 100644 index 0000000000..76ec2b5ff0 --- /dev/null +++ b/tests/run-test/bug75042-3.phpt @@ -0,0 +1,8 @@ +--TEST-- +phpt EXTENSIONS directive with nonexistent shared module +--EXTENSIONS-- +nonexistentsharedmodule +--FILE-- +<?php +--EXPECTF-- +PHP Warning: PHP Startup: Unable to load dynamic library '%snonexistentsharedmodule.%s' %A
\ No newline at end of file diff --git a/tests/run-test/bug75042.phpt b/tests/run-test/bug75042.phpt new file mode 100644 index 0000000000..001e8f3e7d --- /dev/null +++ b/tests/run-test/bug75042.phpt @@ -0,0 +1,17 @@ +--TEST-- +phpt EXTENSIONS directive with shared module +--SKIPIF-- +<?php +$php = getenv('TEST_PHP_EXECUTABLE'); +if (false !== stripos(`$php -n -m`, 'openssl')) { + die('skip openssl is built static'); +} +$ext_module = ini_get('extension_dir') . DIRECTORY_SEPARATOR . (substr(PHP_OS, 0, 3) === "WIN" ? "php_openssl." : "openssl.") . PHP_SHLIB_SUFFIX; +if( !file_exists($ext_module) ) die('skip openssl shared extension not found'); +--EXTENSIONS-- +openssl +--FILE-- +<?php +var_dump(extension_loaded('openssl')); +--EXPECT-- +bool(true) |