stas Tue, 08 Dec 2009 01:44:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291847
Log:
add "no params" check
Changed paths:
U php/php-src/branches/PHP_5_3/ext/standard/filestat.c
U php/php-src/trunk/ext/standard/filestat.c
Modified: php/php-src/branches/PHP_5_3/ext/standard/filestat.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/filestat.c 2009-12-08
01:35:08 UTC (rev 291846)
+++ php/php-src/branches/PHP_5_3/ext/standard/filestat.c 2009-12-08
01:44:15 UTC (rev 291847)
@@ -1111,6 +1111,9 @@
Get current size of realpath cache */
PHP_FUNCTION(realpath_cache_size)
{
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
RETURN_LONG(realpath_cache_size());
}
@@ -1120,6 +1123,10 @@
{
realpath_cache_bucket **buckets = realpath_cache_get_buckets(), **end =
buckets + realpath_cache_max_buckets();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+
array_init(return_value);
while(buckets < end) {
realpath_cache_bucket *bucket = *buckets;
Modified: php/php-src/trunk/ext/standard/filestat.c
===================================================================
--- php/php-src/trunk/ext/standard/filestat.c 2009-12-08 01:35:08 UTC (rev
291846)
+++ php/php-src/trunk/ext/standard/filestat.c 2009-12-08 01:44:15 UTC (rev
291847)
@@ -1208,6 +1208,9 @@
Get current size of realpath cache */
PHP_FUNCTION(realpath_cache_size)
{
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
RETURN_LONG(realpath_cache_size());
}
@@ -1217,6 +1220,10 @@
{
realpath_cache_bucket **buckets = realpath_cache_get_buckets(), **end =
buckets + realpath_cache_max_buckets();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+
array_init(return_value);
while(buckets < end) {
realpath_cache_bucket *bucket = *buckets;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php