com php-src: Test the warning for giving full path to dl(): ext/standard/tests/general_functions/dl-full-path-not-support ed.phpt

From: Date: Sun, 17 Feb 2019 19:22:23 +0000
Subject: com php-src: Test the warning for giving full path to dl(): ext/standard/tests/general_functions/dl-full-path-not-support ed.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104680@lists.php.net to get a copy of this message
Commit: 5b15908ed7d1765c1776b40ffc58092044aa1332 Author: Tom Van Herreweghe <tom@theanalogguy.be> Sun, 17 Feb 2019 20:22:23 +0100 Committer: Peter Kokot <peterkokot@gmail.com> Sun, 17 Feb 2019 20:22:23 +0100 Parents: cf0dd817f2154fffad5fd8d059cf5b83ed78917b Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5b15908ed7d1765c1776b40ffc58092044aa1332 Log: Test the warning for giving full path to dl() Changed paths: A ext/standard/tests/general_functions/dl-full-path-not-supported.phpt Diff: diff --git a/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt b/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt new file mode 100644 index 0000000..21680b6 --- /dev/null +++ b/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt @@ -0,0 +1,22 @@ +--TEST-- +dl() fails when trying to load full path to module ++--CREDITS-- +Tom Van Herreweghe <tom@theanalogguy.be> +User Group: PHP-WVL & PHPGent #PHPTestFest +--SKIPIF-- +<?php +$enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); +if (!in_array(php_sapi_name(), $enabled_sapi)) { + die('skip dl() is not enabled for ' . php_sapi_name()); +} +?> +--INI-- +enable_dl=1 +--FILE-- +<?php +var_dump(dl('/path/to/module')); +?> +--EXPECTF-- + +Warning: dl(): Temporary module name should contain only filename in %s on line %d +bool(false)

« previous php.cvs (#104680) next »