cvs: pecl /intl patch-disable-ext-unicode.diff
| From: | Stanislav Malyshev | Date: | Thu, 17 Jan 2008 19:47:15 +0000 |
| Subject: | cvs: pecl /intl patch-disable-ext-unicode.diff | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9537@lists.php.net to get a copy of this message | ||
stas Thu Jan 17 19:47:15 2008 UTC
Modified files:
/pecl/intl patch-disable-ext-unicode.diff
Log:
update patch for locale
http://cvs.php.net/viewvc.cgi/pecl/intl/patch-disable-ext-unicode.diff?r1=1.1&r2=1.2&diff_format=u
Index: pecl/intl/patch-disable-ext-unicode.diff
diff -u pecl/intl/patch-disable-ext-unicode.diff:1.1 pecl/intl/patch-disable-ext-unicode.diff:1.2
--- pecl/intl/patch-disable-ext-unicode.diff:1.1 Thu Aug 2 00:13:22 2007
+++ pecl/intl/patch-disable-ext-unicode.diff Thu Jan 17 19:47:15 2008
@@ -1,60 +1,66 @@
-? diff
-Index: collator.c
+Index: config.m4
===================================================================
-RCS file: /repository/php-src/ext/unicode/collator.c,v
-retrieving revision 1.13
-diff -u -r1.13 collator.c
---- collator.c 10 Apr 2007 22:44:57 -0000 1.13
-+++ collator.c 2 Aug 2007 00:08:42 -0000
-@@ -25,15 +25,15 @@
-
-
- zend_function_entry collator_funcs_collator[] = {
-- ZEND_ME(collator, __construct, NULL, ZEND_ACC_PUBLIC)
-- ZEND_FENTRY(getDefault, ZEND_FN(collator_get_default), NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-- ZEND_FENTRY(setDefault, ZEND_FN(collator_set_default), NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-- ZEND_NAMED_FE(compare, ZEND_FN(collator_compare), NULL)
-- ZEND_NAMED_FE(setStrength, ZEND_FN(collator_set_strength), NULL)
-- ZEND_NAMED_FE(setAttribute, ZEND_FN(collator_set_attribute), NULL)
-- ZEND_NAMED_FE(getStrength, ZEND_FN(collator_get_strength), NULL)
-- ZEND_NAMED_FE(getAttribute, ZEND_FN(collator_get_attribute), NULL)
-- ZEND_NAMED_FE(sort, ZEND_FN(collator_sort), NULL)
-+// ZEND_ME(collator, __construct, NULL, ZEND_ACC_PUBLIC)
-+// ZEND_FENTRY(getDefault, ZEND_FN(collator_get_default), NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-+// ZEND_FENTRY(setDefault, ZEND_FN(collator_set_default), NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-+// ZEND_NAMED_FE(compare, ZEND_FN(collator_compare), NULL)
-+// ZEND_NAMED_FE(setStrength, ZEND_FN(collator_set_strength), NULL)
-+// ZEND_NAMED_FE(setAttribute, ZEND_FN(collator_set_attribute), NULL)
-+// ZEND_NAMED_FE(getStrength, ZEND_FN(collator_get_strength), NULL)
-+// ZEND_NAMED_FE(getAttribute, ZEND_FN(collator_get_attribute), NULL)
-+// ZEND_NAMED_FE(sort, ZEND_FN(collator_sort), NULL)
- {NULL, NULL, NULL}
- };
+RCS file: /repository/php-src/ext/unicode/config.m4,v
+retrieving revision 1.11
+diff -u -r1.11 config.m4
+--- config.m4 12 Jul 2007 16:08:26 -0000 1.11
++++ config.m4 17 Jan 2008 19:45:56 -0000
+@@ -2,4 +2,4 @@
+ dnl $Id: patch-disable-ext-unicode.diff,v 1.2 2008/01/17 19:47:15 stas Exp $
+ dnl
+-PHP_NEW_EXTENSION(unicode, unicode.c locale.c unicode_iterators.c collator.c property.c
constants.c transform.c, no)
++PHP_NEW_EXTENSION(unicode, unicode.c locale.c unicode_iterators.c property.c constants.c
transform.c, no)
Index: config.w32
===================================================================
RCS file: /repository/php-src/ext/unicode/config.w32,v
retrieving revision 1.12
diff -u -r1.12 config.w32
--- config.w32 12 Jul 2007 16:08:26 -0000 1.12
-+++ config.w32 2 Aug 2007 00:08:42 -0000
++++ config.w32 17 Jan 2008 19:45:56 -0000
@@ -1,4 +1,4 @@
- // $Id: patch-disable-ext-unicode.diff,v 1.1 2007/08/02 00:13:22 stas Exp $
+ // $Id: patch-disable-ext-unicode.diff,v 1.2 2008/01/17 19:47:15 stas Exp $
// vim:ft=javascript
-EXTENSION("unicode", "unicode.c unicode_iterators.c collator.c locale.c property.c
constants.c transform.c", false);
+EXTENSION("unicode", "unicode.c unicode_iterators.c locale.c property.c constants.c
transform.c", false);
+Index: locale.c
+===================================================================
+RCS file: /repository/php-src/ext/unicode/locale.c,v
+retrieving revision 1.11
+diff -u -r1.11 locale.c
+--- locale.c 1 Jan 2007 09:29:33 -0000 1.11
++++ locale.c 17 Jan 2008 19:45:56 -0000
+@@ -38,6 +38,7 @@
+ *target_len = canonicalized_len;
+ }
+
++#if 0
+ /* {{{ proto string locale_get_default(void) U
+ Returns default locale */
+ PHP_FUNCTION(locale_get_default)
+@@ -84,7 +85,7 @@
+ RETURN_TRUE;
+ }
+ /* }}} */
+-
++#endif
+
+ /*
+ * Local variables:
Index: php_unicode.h
===================================================================
RCS file: /repository/php-src/ext/unicode/php_unicode.h,v
retrieving revision 1.15
diff -u -r1.15 php_unicode.h
--- php_unicode.h 1 Jan 2007 09:29:33 -0000 1.15
-+++ php_unicode.h 2 Aug 2007 00:08:42 -0000
-@@ -61,18 +61,18 @@
++++ php_unicode.h 17 Jan 2008 19:45:56 -0000
+@@ -59,20 +59,20 @@
+ #undef locale_get_default
+ #undef locale_set_default
- PHP_FUNCTION(locale_get_default);
- PHP_FUNCTION(locale_set_default);
+-PHP_FUNCTION(locale_get_default);
+-PHP_FUNCTION(locale_set_default);
-PHP_FUNCTION(collator_create);
-PHP_FUNCTION(collator_compare);
-PHP_FUNCTION(collator_sort);
@@ -65,6 +71,8 @@
-PHP_FUNCTION(collator_get_default);
-PHP_FUNCTION(collator_set_default);
-PHP_METHOD(collator, __construct);
++//PHP_FUNCTION(locale_get_default);
++//PHP_FUNCTION(locale_set_default);
+//PHP_FUNCTION(collator_create);
+//PHP_FUNCTION(collator_compare);
+//PHP_FUNCTION(collator_sort);
@@ -84,10 +92,21 @@
Index: unicode.c
===================================================================
RCS file: /repository/php-src/ext/unicode/unicode.c,v
-retrieving revision 1.44
-diff -u -r1.44 unicode.c
---- unicode.c 12 Jul 2007 15:07:32 -0000 1.44
-+++ unicode.c 2 Aug 2007 00:08:42 -0000
+retrieving revision 1.45
+diff -u -r1.45 unicode.c
+--- unicode.c 27 Sep 2007 18:28:42 -0000 1.45
++++ unicode.c 17 Jan 2008 19:45:56 -0000
+@@ -300,8 +300,8 @@
+
+ /* {{{ unicode_functions[] */
+ const zend_function_entry unicode_functions[] = {
+- PHP_FE(locale_get_default, NULL)
+- PHP_FE(locale_set_default, NULL)
++// PHP_FE(locale_get_default, NULL)
++// PHP_FE(locale_set_default, NULL)
+ PHP_FE(unicode_decode, NULL)
+ PHP_FE(unicode_semantics, NULL)
+ PHP_FE(unicode_encode, NULL)
@@ -311,10 +311,10 @@
PHP_FE(unicode_set_subst_char, NULL)
PHP_FE(unicode_get_error_mode, NULL)