com web/gcov: add support for PHP 5.6's new 'S' parameter type: cron/check_parameters.php
| From: | Nuno Lopes | Date: | Sat, 19 Oct 2013 22:04:41 +0000 |
| Subject: | com web/gcov: add support for PHP 5.6's new 'S' parameter type: cron/check_parameters.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16881@lists.php.net to get a copy of this message | ||
Commit: 3aca84a637ec56376ba2cdc3a3ac1c2e421304c1
Author: Nuno Lopes <nlopess@php.net> Sat, 19 Oct 2013 18:04:41 -0400
Parents: 2e8652991f8c2e7dfd1c4f60a6814b8d6c473aba
Branches: master
Link: http://git.php.net/?p=web/gcov.git;a=commitdiff;h=3aca84a637ec56376ba2cdc3a3ac1c2e421304c1
Log:
add support for PHP 5.6's new 'S' parameter type
Signed-off-by: Nuno Lopes <nlopess@php.net>
Changed paths:
M cron/check_parameters.php
Diff:
diff --git a/cron/check_parameters.php b/cron/check_parameters.php
index 29ebe38..5a79d23 100644
--- a/cron/check_parameters.php
+++ b/cron/check_parameters.php
@@ -61,6 +61,11 @@ if (version_compare(VERSION, '5.4', 'ge')) {
$API_params['p'] = $API_params['s']; // a valid path
}
+// specific to PHP >= 5.6
+if (version_compare(VERSION, '5.6', 'ge')) {
+ $API_params['S'] = array('char**', 'zend_str_size*'), // string
+}
+
$check_params = array();
/** reports an error, according to its level */