php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60760
Patch spl_zpp_none.diff revision 2013-09-18 15:00 UTC by levim@php.net
Patch spl_zpp_none.patch revision 2013-09-17 23:55 UTC by levim@php.net
Patch spl_dllist_zend_parse_parameters_none.diff revision 2012-01-15 03:33 UTC by dragoonis@php.net

Patch spl_dllist_zend_parse_parameters_none.diff for SPL related Bug #60760

Patch version 2012-01-15 03:33 UTC

Return to Bug #60760 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: dragoonis@php.net

Index: ext/spl/spl_dllist.c
===================================================================
--- ext/spl/spl_dllist.c	(revision 322310)
+++ ext/spl/spl_dllist.c	(working copy)
@@ -626,9 +626,9 @@
 	zval *value;
 	spl_dllist_object *intern;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 	value  = (zval *)spl_ptr_llist_shift(intern->llist TSRMLS_CC);
@@ -649,9 +649,9 @@
 	zval *value;
 	spl_dllist_object *intern;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 	value  = (zval *)spl_ptr_llist_last(intern->llist);
@@ -672,9 +672,9 @@
 	zval *value;
 	spl_dllist_object *intern;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 	value  = (zval *)spl_ptr_llist_first(intern->llist);
@@ -695,9 +695,9 @@
 	long count;
 	spl_dllist_object *intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	count = spl_ptr_llist_count(intern->llist);
 	RETURN_LONG(count);
@@ -710,9 +710,9 @@
 {
 	long count;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	spl_dllist_object_count_elements(getThis(), &count TSRMLS_CC);
 	RETURN_BOOL(count==0);
@@ -750,9 +750,9 @@
 {
 	spl_dllist_object *intern;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
-		return;
-	}
+        if (zend_parse_parameters_none() == FAILURE) {	
+                return;
+        }
 
 	intern = (spl_dllist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC