Remove main/php3_compat.h, for that a few references to `function_entry` have
authorJohannes Schlüter <johannes@php.net>
Tue, 30 Mar 2010 23:03:02 +0000 (23:03 +0000)
committerJohannes Schlüter <johannes@php.net>
Tue, 30 Mar 2010 23:03:02 +0000 (23:03 +0000)
to be replaced by `zend_function_entry`.

15 files changed:
ext/enchant/enchant.c
ext/fileinfo/fileinfo.c
ext/intl/collator/collator_class.c
ext/intl/dateformat/dateformat_class.c
ext/intl/formatter/formatter_class.c
ext/intl/locale/locale_class.c
ext/intl/msgformat/msgformat_class.c
ext/intl/normalizer/normalizer_class.c
ext/intl/resourcebundle/resourcebundle_class.c
ext/json/json.c
ext/pdo_odbc/pdo_odbc.c
ext/phar/phar.c
ext/reflection/php_reflection.c
main/php.h
main/php3_compat.h [deleted file]

index e415019b86bfc7abf829c198c620bd5538aeace9..c123e6756e8dc2692ceec619c70677bd353adb61 100755 (executable)
@@ -124,7 +124,7 @@ ZEND_END_ARG_INFO()
  *
  * Every user visible function must have an entry in enchant_functions[].
  */
-function_entry enchant_functions[] = {
+zend_function_entry enchant_functions[] = {
        PHP_FE(enchant_broker_init,                     arginfo_enchant_broker_init)
        PHP_FE(enchant_broker_free,                     arginfo_enchant_broker_free)
        PHP_FE(enchant_broker_get_error,                arginfo_enchant_broker_free)
index 443129bd91ae3bf72597a565fc08cf82678fbd7e..e0e9868897a9e5ddaa97d18a83288f0fa860770e 100644 (file)
@@ -167,7 +167,7 @@ ZEND_END_ARG_INFO()
 
 /* {{{ finfo_class_functions
  */
-function_entry finfo_class_functions[] = {
+zend_function_entry finfo_class_functions[] = {
        ZEND_ME_MAPPING(finfo,          finfo_open,     arginfo_finfo_open, ZEND_ACC_PUBLIC)
        ZEND_ME_MAPPING(set_flags,      finfo_set_flags,arginfo_finfo_method_set_flags, ZEND_ACC_PUBLIC)
        ZEND_ME_MAPPING(file,           finfo_file,     arginfo_finfo_method_file, ZEND_ACC_PUBLIC)
@@ -201,7 +201,7 @@ void finfo_resource_destructor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
 
 /* {{{ fileinfo_functions[]
  */
-function_entry fileinfo_functions[] = {
+zend_function_entry fileinfo_functions[] = {
        PHP_FE(finfo_open,              arginfo_finfo_open)
        PHP_FE(finfo_close,             arginfo_finfo_close)
        PHP_FE(finfo_set_flags, arginfo_finfo_set_flags)
index ee16ee03e1bdefbfc49c451260849a566191b5f3..d73126a85955bbf113ce26bf9e10b8a3923848ef 100755 (executable)
@@ -111,7 +111,7 @@ ZEND_END_ARG_INFO()
  * Every 'Collator' class method has an entry in this table
  */
 
-function_entry Collator_class_functions[] = {
+zend_function_entry Collator_class_functions[] = {
        PHP_ME( Collator, __construct, collator_1_arg, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
        ZEND_FENTRY( create, ZEND_FN( collator_create ), collator_1_arg, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        PHP_NAMED_FE( compare, ZEND_FN( collator_compare ), collator_2_args )
index 7df95816e20252ae01db07ad02494bed4317fc40..3976951d0b5fdbf94e0b5650b1264430f7d36805 100755 (executable)
@@ -126,7 +126,7 @@ ZEND_END_ARG_INFO()
 /* {{{ IntlDateFormatter_class_functions
  * Every 'IntlDateFormatter' class method has an entry in this table
  */
-static function_entry IntlDateFormatter_class_functions[] = {
+static zend_function_entry IntlDateFormatter_class_functions[] = {
        PHP_ME( IntlDateFormatter, __construct, arginfo_intldateformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
        ZEND_FENTRY(  create, ZEND_FN( datefmt_create ), arginfo_intldateformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        PHP_NAMED_FE( getDateType, ZEND_FN( datefmt_get_datetype ), arginfo_intldateformatter_getdatetype )
index a6f45108ea9e6185ffd4781967760fdf6f378c40..43d4d741d5ffce58426c28298371c04b9a1cbe5f 100755 (executable)
@@ -137,7 +137,7 @@ ZEND_END_ARG_INFO()
 /* {{{ NumberFormatter_class_functions
  * Every 'NumberFormatter' class method has an entry in this table
  */
-static function_entry NumberFormatter_class_functions[] = {
+static zend_function_entry NumberFormatter_class_functions[] = {
        PHP_ME( NumberFormatter, __construct, arginfo_numberformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
        ZEND_FENTRY( create, ZEND_FN( numfmt_create ), arginfo_numberformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        PHP_NAMED_FE( format, ZEND_FN( numfmt_format ), arginfo_numberformatter_format )
index 8a9efbd832f997a24ab0efedf041a68aace5c3c6..bba6449ac73fd67275d5e1cb14748830a3ab0681 100755 (executable)
@@ -66,7 +66,7 @@ ZEND_END_ARG_INFO()
  * Every 'Locale' class method has an entry in this table
  */
 
-function_entry Locale_class_functions[] = {
+zend_function_entry Locale_class_functions[] = {
        ZEND_FENTRY( getDefault, zif_locale_get_default , locale_0_args , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC  )
        ZEND_FENTRY( setDefault, zif_locale_set_default , locale_1_arg , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        ZEND_FENTRY( getPrimaryLanguage, ZEND_FN( locale_get_primary_language ), locale_1_arg , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
index b710ee708627bf8550117d48e15236f53cbe9a25..28906d4e4cd30f71f3a34c58ab1893c40611ea5c 100755 (executable)
@@ -107,7 +107,7 @@ ZEND_END_ARG_INFO()
 /* {{{ MessageFormatter_class_functions
  * Every 'MessageFormatter' class method has an entry in this table
  */
-static function_entry MessageFormatter_class_functions[] = {
+static zend_function_entry MessageFormatter_class_functions[] = {
        PHP_ME( MessageFormatter, __construct, arginfo_messageformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
        ZEND_FENTRY(  create, ZEND_FN( msgfmt_create ), arginfo_messageformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        PHP_NAMED_FE( format, ZEND_FN( msgfmt_format ), arginfo_messageformatter_format )
index 75894fffc3744c5120800f81a81db0beb0c418ca..736f7ecbf4a20a1708dee77d47a6678ab4b73bfb 100755 (executable)
@@ -41,7 +41,7 @@ ZEND_END_ARG_INFO()
  * Every 'Normalizer' class method has an entry in this table
  */
 
-function_entry Normalizer_class_functions[] = {
+zend_function_entry Normalizer_class_functions[] = {
        ZEND_FENTRY( normalize, ZEND_FN( normalizer_normalize ), normalizer_3_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        ZEND_FENTRY( isNormalized, ZEND_FN( normalizer_is_normalized ), normalizer_3_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        { NULL, NULL, NULL }
index bebd0e8282f1ddbb288e357edf7855045bffe219..85a3f9d700a39199ca7547caabb8969abb8ae5f1 100644 (file)
@@ -387,7 +387,7 @@ PHP_FUNCTION( resourcebundle_get_error_message )
 /* {{{ ResourceBundle_class_functions
  * Every 'ResourceBundle' class method has an entry in this table
  */
-static function_entry ResourceBundle_class_functions[] = {
+static zend_function_entry ResourceBundle_class_functions[] = {
        PHP_ME( ResourceBundle, __construct, arginfo_resourcebundle___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
        ZEND_NAMED_ME( create, ZEND_FN( resourcebundle_create ), arginfo_resourcebundle___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
        ZEND_NAMED_ME( get, ZEND_FN(resourcebundle_get), arginfo_resourcebundle_get, ZEND_ACC_PUBLIC )
index 5d166f0a3e07349fb0b11a7fa3a3620c0a8c9d55..8fdacc193f17ba569d481278e4482da0ada28aac 100644 (file)
@@ -65,7 +65,7 @@ ZEND_END_ARG_INFO()
 /* }}} */
 
 /* {{{ json_functions[] */
-static const function_entry json_functions[] = {
+static const zend_function_entry json_functions[] = {
        PHP_FE(json_encode, arginfo_json_encode)
        PHP_FE(json_decode, arginfo_json_decode)
        PHP_FE(json_last_error, arginfo_json_last_error)
index 319cf2067ddbcffdcc02b3691d311200efcd08f7..0ea92a900972d102c88a12ef3ef2f8715c21ddbf 100755 (executable)
@@ -31,7 +31,7 @@
 #include "php_pdo_odbc_int.h"
 
 /* {{{ pdo_odbc_functions[] */
-const function_entry pdo_odbc_functions[] = {
+const zend_function_entry pdo_odbc_functions[] = {
        {NULL, NULL, NULL}
 };
 /* }}} */
index 6dee760a9c210b4d9c0ff9ca6ccc0b4621b30bf6..52179b124610411ea665a62424df40ffe4ef07c3 100644 (file)
@@ -3289,7 +3289,7 @@ ZEND_GET_MODULE(phar)
  *
  * Every user visible function must have an entry in phar_functions[].
  */
-function_entry phar_functions[] = {
+zend_function_entry phar_functions[] = {
        {NULL, NULL, NULL} /* Must be the last line in phar_functions[] */
 };
 /* }}}*/
index 8afbac60cc117849b338e2bf8991aed40a61e477..bafa7c8fa61ed77d97cde924dff21958a5412e1c 100644 (file)
 #include "zend_closures.h"
 #include "zend_extensions.h"
 
-/* Undefine "getParameters" macro defined in "main/php3_compat.h" */
-#ifdef getParameters
-# undef getParameters
-#endif
-
 /* Class entry pointers */
 PHPAPI zend_class_entry *reflector_ptr;
 PHPAPI zend_class_entry *reflection_exception_ptr;
index e858e3c42401e6b660896b143ab52fa898624164..43c8cbfc4801774468213971d38320bd3a4d88ed 100644 (file)
@@ -182,7 +182,6 @@ typedef unsigned int socklen_t;
 #endif
 
 #include "zend_hash.h"
-#include "php3_compat.h"
 #include "zend_alloc.h"
 #include "zend_stack.h"
 
diff --git a/main/php3_compat.h b/main/php3_compat.h
deleted file mode 100644 (file)
index fdd2567..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
-  +----------------------------------------------------------------------+
-  | PHP Version 5                                                        |
-  +----------------------------------------------------------------------+
-  | Copyright (c) 1997-2010 The PHP Group                                |
-  +----------------------------------------------------------------------+
-  | This source file is subject to version 3.01 of the PHP license,      |
-  | that is bundled with this package in the file LICENSE, and is        |
-  | available through the world-wide-web at the following url:           |
-  | http://www.php.net/license/3_01.txt                                  |
-  | If you did not receive a copy of the PHP license and are unable to   |
-  | obtain it through the world-wide-web, please send a note to          |
-  | license@php.net so we can mail you a copy immediately.               |
-  +----------------------------------------------------------------------+
-  | Author:                                                              |
-  +----------------------------------------------------------------------+
-*/
-
-/* $Id$ */
-
-#ifndef PHP3_COMPAT_H
-#define PHP3_COMPAT_H
-
-typedef zval pval;
-
-#define pval_copy_constructor zval_copy_ctor
-#define pval_destructor        zval_dtor
-
-#define _php3_hash_init zend_hash_init
-#define _php3_hash_destroy zend_hash_destroy
-
-#define _php3_hash_clean zend_hash_clean
-
-#define _php3_hash_add_or_update zend_hash_add_or_update
-#define _php3_hash_add zend_hash_add
-#define _php3_hash_update zend_hash_update
-
-#define _php3_hash_quick_add_or_update zend_hash_quick_add_or_update
-#define _php3_hash_quick_add zend_hash_quick_add
-#define _php3_hash_quick_update zend_hash_quick_update
-
-#define _php3_hash_index_update_or_next_insert zend_hash_index_update_or_next_insert
-#define _php3_hash_index_update zend_hash_index_update
-#define _php3_hash_next_index_insert zend_hash_next_index_insert
-
-#define _php3_hash_pointer_update zend_hash_pointer_update
-
-#define _php3_hash_pointer_index_update_or_next_insert zend_hash_pointer_index_update_or_next_insert
-#define _php3_hash_pointer_index_update zend_hash_pointer_index_update
-#define _php3_hash_next_index_pointer_update zend_hash_next_index_pointer_update
-#define _php3_hash_next_index_pointer_insert zend_hash_next_index_pointer_insert
-
-#define _php3_hash_del_key_or_index zend_hash_del_key_or_index
-#define _php3_hash_del zend_hash_del
-#define _php3_hash_index_del zend_hash_index_del
-
-#define _php3_hash_find zend_hash_find
-#define _php3_hash_quick_find zend_hash_quick_find
-#define _php3_hash_index_find zend_hash_index_find
-
-#define _php3_hash_exists zend_hash_exists
-#define _php3_hash_index_exists zend_hash_index_exists
-#define _php3_hash_is_pointer zend_hash_is_pointer
-#define _php3_hash_index_is_pointer zend_hash_index_is_pointer
-#define _php3_hash_next_free_element zend_hash_next_free_element
-
-#define _php3_hash_move_forward zend_hash_move_forward
-#define _php3_hash_move_backwards zend_hash_move_backwards
-#define _php3_hash_get_current_key zend_hash_get_current_key
-#define _php3_hash_get_current_data zend_hash_get_current_data
-#define _php3_hash_internal_pointer_reset zend_hash_internal_pointer_reset
-#define _php3_hash_internal_pointer_end zend_hash_internal_pointer_end
-
-#define _php3_hash_copy zend_hash_copy
-#define _php3_hash_merge zend_hash_merge
-#define _php3_hash_sort zend_hash_sort
-#define _php3_hash_minmax zend_hash_minmax
-
-#define _php3_hash_num_elements zend_hash_num_elements
-
-#define _php3_hash_apply zend_hash_apply
-#define _php3_hash_apply_with_argument zend_hash_apply_with_argument
-
-
-#define php3_error php_error
-
-#define php3_printf php_printf
-#define _php3_sprintf php_sprintf
-
-
-
-#define php3_module_entry zend_module_entry
-
-#define php3_strndup           zend_strndup
-#define php3_str_tolower       zend_str_tolower
-#define php3_binary_strcmp     zend_binary_strcmp
-
-
-#define php3_list_insert       zend_list_insert
-#define php3_list_find         zend_list_find
-#define php3_list_delete       zend_list_delete
-
-#define php3_plist_insert      zend_plist_insert
-#define php3_plist_find                zend_plist_find
-#define php3_plist_delete      zend_plist_delete
-
-#define zend_print_pval                zend_print_zval
-#define zend_print_pval_r      zend_print_zval_r
-
-
-#define function_entry         zend_function_entry
-
-#define _php3_addslashes       php_addslashes
-#define _php3_stripslashes     php_stripslashes
-#define php3_dl             php_dl
-
-#define getParameters          zend_get_parameters
-#define getParametersArray     zend_get_parameters_array
-
-#define list_entry                     zend_rsrc_list_entry
-
-#endif                                                 /* PHP3_COMPAT_H */