johannes                Mon Feb 20 23:33:33 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/reflection     php_reflection.c 
    /php-src    NEWS 
  Log:
  - MFH: Rename reflection constants to fix parser conflicts
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.24&r2=1.164.2.25&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.164.2.24 
php-src/ext/reflection/php_reflection.c:1.164.2.25
--- php-src/ext/reflection/php_reflection.c:1.164.2.24  Mon Feb 20 15:27:45 2006
+++ php-src/ext/reflection/php_reflection.c     Mon Feb 20 23:33:32 2006
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: php_reflection.c,v 1.164.2.24 2006/02/20 15:27:45 iliaa Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.25 2006/02/20 23:33:32 johannes Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -4282,12 +4282,12 @@
        zend_declare_property_string(reflection_method_ptr, "name", 
sizeof("name")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
        zend_declare_property_string(reflection_method_ptr, "class", 
sizeof("class")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
 
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "STATIC", ZEND_ACC_STATIC);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "PUBLIC", ZEND_ACC_PUBLIC);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "PROTECTED", 
ZEND_ACC_PROTECTED);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "PRIVATE", 
ZEND_ACC_PRIVATE);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "ABSTRACT", 
ZEND_ACC_ABSTRACT);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "FINAL", ZEND_ACC_FINAL);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_STATIC", 
ZEND_ACC_STATIC);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_PUBLIC", 
ZEND_ACC_PUBLIC);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_PROTECTED", 
ZEND_ACC_PROTECTED);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_PRIVATE", 
ZEND_ACC_PRIVATE);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_ABSTRACT", 
ZEND_ACC_ABSTRACT);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(method, "IS_FINAL", 
ZEND_ACC_FINAL);
 
        INIT_CLASS_ENTRY(_reflection_entry, "ReflectionClass", 
reflection_class_functions);
        _reflection_entry.create_object = reflection_objects_new;
@@ -4295,9 +4295,9 @@
        reflection_register_implement(reflection_class_ptr, reflector_ptr 
TSRMLS_CC);
        zend_declare_property_string(reflection_class_ptr, "name", 
sizeof("name")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
 
-       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "IMPLICIT_ABSTRACT", 
ZEND_ACC_IMPLICIT_ABSTRACT_CLASS);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "EXPLICIT_ABSTRACT", 
ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "FINAL", 
ZEND_ACC_FINAL_CLASS);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "IS_IMPLICIT_ABSTRACT", 
ZEND_ACC_IMPLICIT_ABSTRACT_CLASS);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "IS_EXPLICIT_ABSTRACT", 
ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(class, "IS_FINAL", 
ZEND_ACC_FINAL_CLASS);
 
        INIT_CLASS_ENTRY(_reflection_entry, "ReflectionObject", 
reflection_object_functions);
        _reflection_entry.create_object = reflection_objects_new;
@@ -4310,10 +4310,10 @@
        zend_declare_property_string(reflection_property_ptr, "name", 
sizeof("name")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
        zend_declare_property_string(reflection_property_ptr, "class", 
sizeof("class")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
 
-       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "STATIC", 
ZEND_ACC_STATIC);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "PUBLIC", 
ZEND_ACC_PUBLIC);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "PROTECTED", 
ZEND_ACC_PROTECTED);
-       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "PRIVATE", 
ZEND_ACC_PRIVATE);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_STATIC", 
ZEND_ACC_STATIC);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PUBLIC", 
ZEND_ACC_PUBLIC);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PROTECTED", 
ZEND_ACC_PROTECTED);
+       REGISTER_REFLECTION_CLASS_CONST_LONG(property, "IS_PRIVATE", 
ZEND_ACC_PRIVATE);
 
        INIT_CLASS_ENTRY(_reflection_entry, "ReflectionExtension", 
reflection_extension_functions);
        _reflection_entry.create_object = reflection_objects_new;
@@ -4329,7 +4329,7 @@
        php_info_print_table_start();
        php_info_print_table_header(2, "Reflection", "enabled");
 
-       php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 
1.164.2.24 2006/02/20 15:27:45 iliaa Exp $");
+       php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 
1.164.2.25 2006/02/20 23:33:32 johannes Exp $");
 
        php_info_print_table_end();
 } /* }}} */
http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.2027.2.421&r2=1.2027.2.422&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.421 php-src/NEWS:1.2027.2.422
--- php-src/NEWS:1.2027.2.421   Mon Feb 20 15:27:45 2006
+++ php-src/NEWS        Mon Feb 20 23:33:32 2006
@@ -15,6 +15,7 @@
     on error.
 - Changed get_headers() to retrieve headers also from non-200 responses. (Ilia)
 - Changed get_headers() to use the default context. (Ilia)
+- Changed reflection constants to be prefixed with IS_. (Johannes)
 - Added a check for special characters in the session name. (Ilia)
 - Added "consumed" stream filter. (Marcus)
 - Added new mysqli constants for BIT and NEW_DECIMAL field types:

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

Reply via email to