On 08.07.2006 02:34, Andrei Zmievski wrote:
andrei          Fri Jul  7 22:34:46 2006 UTC

Modified files: /php-src/ext/unicode unicode_iterators.c Log:
  Implement TextIterator::isBoundary() for break iterators.

Andrei, long flags is used uninitialized in this function.
Did you forget something?

+PHP_METHOD(TextIterator, isBoundary)
+{
+       long flags, offset;
+       zval *object = getThis();
+       text_iter_obj *intern = (text_iter_obj*) 
zend_object_store_get_object(object TSRMLS_CC);
+
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &offset) == 
FAILURE) {
+               return;
+       }
+
+       /*
+        * ReverseTextIterator will behave the same as the normal one.
+        */
+       RETURN_BOOL(iter_ops[intern->type]->isBoundary(intern, offset, flags 
TSRMLS_CC));
+}
+


--
Wbr, Antony Dovgal

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

Reply via email to