kalle                                    Fri, 19 Nov 2010 15:48:11 +0000

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

Log:
Kill warnings about constness

Changed paths:
    U   php/php-src/trunk/ext/reflection/php_reflection.c

Modified: php/php-src/trunk/ext/reflection/php_reflection.c
===================================================================
--- php/php-src/trunk/ext/reflection/php_reflection.c   2010-11-19 14:46:56 UTC 
(rev 305558)
+++ php/php-src/trunk/ext/reflection/php_reflection.c   2010-11-19 15:48:11 UTC 
(rev 305559)
@@ -3065,7 +3065,7 @@
 ZEND_METHOD(reflection_function, inNamespace)
 {
        zval **name;
-       char *colon;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
@@ -3074,8 +3074,8 @@
                RETURN_FALSE;
        }
        if (Z_TYPE_PP(name) == IS_STRING
-               && (colon = zend_memrchr(Z_STRVAL_PP(name), '\\', 
Z_STRLEN_PP(name)))
-               && colon > Z_STRVAL_PP(name))
+               && (backslash = zend_memrchr(Z_STRVAL_PP(name), '\\', 
Z_STRLEN_PP(name)))
+               && backslash > Z_STRVAL_PP(name))
        {
                RETURN_TRUE;
        }
@@ -3088,7 +3088,7 @@
 ZEND_METHOD(reflection_function, getNamespaceName)
 {
        zval **name;
-       char *backslash;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
@@ -3111,7 +3111,7 @@
 ZEND_METHOD(reflection_function, getShortName)
 {
        zval **name;
-       char *backslash;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
@@ -4599,7 +4599,7 @@
 ZEND_METHOD(reflection_class, inNamespace)
 {
        zval **name;
-       char *colon;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
@@ -4608,8 +4608,8 @@
                RETURN_FALSE;
        }
        if (Z_TYPE_PP(name) == IS_STRING
-               && (colon = zend_memrchr(Z_STRVAL_PP(name), '\\', 
Z_STRLEN_PP(name)))
-               && colon > Z_STRVAL_PP(name))
+               && (backslash = zend_memrchr(Z_STRVAL_PP(name), '\\', 
Z_STRLEN_PP(name)))
+               && backslash > Z_STRVAL_PP(name))
        {
                RETURN_TRUE;
        }
@@ -4622,7 +4622,7 @@
 ZEND_METHOD(reflection_class, getNamespaceName)
 {
        zval **name;
-       char *backslash;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
@@ -4645,7 +4645,7 @@
 ZEND_METHOD(reflection_class, getShortName)
 {
        zval **name;
-       char *backslash;
+       const char *backslash;

        if (zend_parse_parameters_none() == FAILURE) {
                return;

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

Reply via email to