packages: php-pecl-intl/z_refcount.patch (NEW) - diff against 5.3.2
glen
glen at pld-linux.org
Sun Jun 6 21:09:45 CEST 2010
Author: glen Date: Sun Jun 6 19:09:45 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- diff against 5.3.2
---- Files affected:
packages/php-pecl-intl:
z_refcount.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-pecl-intl/z_refcount.patch
diff -u /dev/null packages/php-pecl-intl/z_refcount.patch:1.1
--- /dev/null Sun Jun 6 21:09:45 2010
+++ packages/php-pecl-intl/z_refcount.patch Sun Jun 6 21:09:40 2010
@@ -0,0 +1,43 @@
+--- php-pecl-intl-1.1.1/msgformat/msgformat_attr.c 2010-03-16 00:03:30.000000000 +0200
++++ php-5.3.2/ext/intl/msgformat/msgformat_attr.c 2009-04-28 02:22:16.000000000 +0300
+@@ -33,9 +33,6 @@
+ */
+ PHP_FUNCTION( msgfmt_get_pattern )
+ {
+- UChar value_buf[64];
+- int length = USIZE( value_buf );
+- UChar* value = value_buf;
+ MSG_FORMAT_METHOD_INIT_VARS;
+
+ /* Parse parameters. */
+--- php-pecl-intl-1.1.1/resourcebundle/resourcebundle_class.c 2010-03-16 00:03:30.000000000 +0200
++++ php-5.3.2/ext/intl/resourcebundle/resourcebundle_class.c 2010-02-12 01:55:19.000000000 +0200
+@@ -212,7 +212,7 @@
+ MAKE_STD_ZVAL(retval);
+
+ resourcebundle_array_fetch(object, offset, retval, 1 TSRMLS_CC);
+- retval->refcount--;
++ Z_DELREF_P(retval);
+ return retval;
+ }
+ /* }}} */
+--- php-pecl-intl-1.1.1/resourcebundle/resourcebundle_iterator.c 2010-03-16 00:03:30.000000000 +0200
++++ php-5.3.2/ext/intl/resourcebundle/resourcebundle_iterator.c 2010-02-12 01:55:19.000000000 +0200
+@@ -75,7 +75,7 @@
+
+ resourcebundle_iterator_invalidate( iter TSRMLS_CC );
+
+- object->refcount--;
++ Z_DELREF_P(object);
+
+ efree(iterator);
+ }
+@@ -162,7 +162,7 @@
+ php_error( E_ERROR, "ResourceBundle does not support writable iterators" );
+ }
+
+- object->refcount++;
++ Z_ADDREF_P(object);
+ iterator->intern.data = (void *) object;
+ iterator->intern.funcs = &resourcebundle_iterator_funcs;
+
================================================================
More information about the pld-cvs-commit
mailing list