johannes                                 Wed, 28 Apr 2010 10:11:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298695

Log:
spread some more const

Changed paths:
    U   php/php-src/trunk/Zend/zend_API.c
    U   php/php-src/trunk/Zend/zend_API.h

Modified: php/php-src/trunk/Zend/zend_API.c
===================================================================
--- php/php-src/trunk/Zend/zend_API.c   2010-04-28 09:43:03 UTC (rev 298694)
+++ php/php-src/trunk/Zend/zend_API.c   2010-04-28 10:11:50 UTC (rev 298695)
@@ -1514,7 +1514,7 @@
 }
 /* }}} */

-ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, 
char *str, int duplicate TSRMLS_DC) /* {{{ */
+ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, 
const char *str, int duplicate TSRMLS_DC) /* {{{ */
 {
        zval *tmp;
        zval *z_key;
@@ -1532,7 +1532,7 @@
 }
 /* }}} */

-ZEND_API int add_property_stringl_ex(zval *arg, const char *key, uint key_len, 
char *str, uint length, int duplicate TSRMLS_DC) /* {{{ */
+ZEND_API int add_property_stringl_ex(zval *arg, const char *key, uint key_len, 
const char *str, uint length, int duplicate TSRMLS_DC) /* {{{ */
 {
        zval *tmp;
        zval *z_key;
@@ -3221,7 +3221,7 @@
 }
 /* }}} */

-ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, 
int name_length, char *value, int access_type TSRMLS_DC) /* {{{ */
+ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, 
int name_length, const char *value, int access_type TSRMLS_DC) /* {{{ */
 {
        zval *property;
        int len = strlen(value);
@@ -3238,7 +3238,7 @@
 }
 /* }}} */

-ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, char *name, 
int name_length, char *value, int value_len, int access_type TSRMLS_DC) /* {{{ 
*/
+ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, char *name, 
int name_length, const char *value, int value_len, int access_type TSRMLS_DC) 
/* {{{ */
 {
        zval *property;


Modified: php/php-src/trunk/Zend/zend_API.h
===================================================================
--- php/php-src/trunk/Zend/zend_API.h   2010-04-28 09:43:03 UTC (rev 298694)
+++ php/php-src/trunk/Zend/zend_API.h   2010-04-28 10:11:50 UTC (rev 298695)
@@ -288,8 +288,8 @@
 ZEND_API int zend_declare_property_bool(zend_class_entry *ce, char *name, int 
name_length, long value, int access_type TSRMLS_DC);
 ZEND_API int zend_declare_property_long(zend_class_entry *ce, char *name, int 
name_length, long value, int access_type TSRMLS_DC);
 ZEND_API int zend_declare_property_double(zend_class_entry *ce, char *name, 
int name_length, double value, int access_type TSRMLS_DC);
-ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, 
int name_length, char *value, int access_type TSRMLS_DC);
-ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, char *name, 
int name_length, char *value, int value_len, int access_type TSRMLS_DC);
+ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, 
int name_length, const char *value, int access_type TSRMLS_DC);
+ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, char *name, 
int name_length, const char *value, int value_len, int access_type TSRMLS_DC);

 ZEND_API int zend_declare_class_constant(zend_class_entry *ce, const char 
*name, size_t name_length, zval *value TSRMLS_DC);
 ZEND_API int zend_declare_class_constant_null(zend_class_entry *ce, const char 
*name, size_t name_length TSRMLS_DC);
@@ -410,8 +410,8 @@
 ZEND_API int add_property_bool_ex(zval *arg, const char *key, uint key_len, 
int b TSRMLS_DC);
 ZEND_API int add_property_resource_ex(zval *arg, const char *key, uint 
key_len, long r TSRMLS_DC);
 ZEND_API int add_property_double_ex(zval *arg, const char *key, uint key_len, 
double d TSRMLS_DC);
-ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, 
char *str, int duplicate TSRMLS_DC);
-ZEND_API int add_property_stringl_ex(zval *arg, const char *key, uint key_len, 
 char *str, uint length, int duplicate TSRMLS_DC);
+ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, 
const char *str, int duplicate TSRMLS_DC);
+ZEND_API int add_property_stringl_ex(zval *arg, const char *key, uint key_len, 
 const char *str, uint length, int duplicate TSRMLS_DC);
 ZEND_API int add_property_zval_ex(zval *arg, const char *key, uint key_len, 
zval *value TSRMLS_DC);

 #define add_property_long(__arg, __key, __n) add_property_long_ex(__arg, 
__key, strlen(__key)+1, __n TSRMLS_CC)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to