svn: /web/php-gcov/trunk/cron/ check_parameters.php
| From: | Felipe Pena | Date: | Thu, 16 Jun 2011 00:29:19 +0000 |
| Subject: | svn: /web/php-gcov/trunk/cron/ check_parameters.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11207@lists.php.net to get a copy of this message | ||
felipe Thu, 16 Jun 2011 00:29:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312198
Log:
- Updated parameter checker
Changed paths:
U web/php-gcov/trunk/cron/check_parameters.php
Modified: web/php-gcov/trunk/cron/check_parameters.php
===================================================================
--- web/php-gcov/trunk/cron/check_parameters.php 2011-06-15 23:19:30 UTC (rev 312197)
+++ web/php-gcov/trunk/cron/check_parameters.php 2011-06-16 00:29:19 UTC (rev 312198)
@@ -49,22 +49,16 @@
'Z' => array('zval***') // zval**
);
-// specific to PHP >= 6
-if (version_compare(VERSION, '6', 'ge')) {
- $API_params['S'] = $API_params['s']; // binary string
- $API_params['t'] = array('zstr*', 'int*', 'zend_uchar*');
// text
- $API_params['T'] = $API_params['t'];
- $API_params['u'] = array('UChar**', 'int*'); // unicode
- $API_params['U'] = $API_params['u'];
- $API_params['x'] = array('zstr*', 'int*');
-}
-
// specific to PHP >= 5.3
if (version_compare(VERSION, '5.3', 'ge')) {
$API_params['A'] = $API_params['a']; // array or object (zval *)
$API_params['H'] = $API_params['h']; // array or object (HASH_OF)
}
+// specific to PHP >= 5.4
+if (version_compare(VERSION, '5.4', 'ge')) {
+ $API_params['p'] = $API_params['s']; // a valid path
+}
$check_params = array();