ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-cvs
php-cvs
[PHP-CVS] cvs: php-src /ext/unicode property.c
by Andrei Zmievski other posts by this author
May 8 2006 5:16PM messages near this date
[PHP-CVS] 1 | [PHP-CVS] cvs: php-src /ext/unicode php_property.h property.c unicode.c
andrei		Tue May  9 00:15:45 2006 UTC

  Modified files:              
    /php-src/ext/unicode	property.c 
  Log:
  Fix and adjust.
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/property.c?r1=1.12&r2=1.13&diff_format=u
Index: php-src/ext/unicode/property.c
diff -u php-src/ext/unicode/property.c:1.12 php-src/ext/unicode/property.c:1.13
--- php-src/ext/unicode/property.c:1.12	Tue May  9 00:06:08 2006
+++ php-src/ext/unicode/property.c	Tue May  9 00:15:45 2006
@@ -14,7 +14,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: property.c,v 1.12 2006/05/09 00:06:08 andrei Exp $ */ 
+/* $Id: property.c,v 1.13 2006/05/09 00:15:45 andrei Exp $ */ 
 
 #include "php_unicode.h"
 
@@ -643,7 +643,6 @@
 
 /* }}} */
 
-
 /* {{{ Enumerator functions */
 
 static UBool php_enum_char_names(void *context,
@@ -658,18 +657,16 @@
     UBool					result = FALSE;
     TSRMLS_FETCH_FROM_CTX(ctx-> thread_ctx);
 
-	/*
     convert_to_long_ex(ctx-> args[0]);
-    convert_to_bool_ex(ctx-> args[1]);
-    convert_to_string_ex(ctx-> args[2]);
-	*/
+    convert_to_unicode_ex(ctx-> args[1]);
+    convert_to_boolean_ex(ctx-> args[2]);
 
     ZVAL_LONG(*ctx-> args[0], code);
-    ZVAL_BOOL(*ctx-> args[1], nameChoice == U_EXTENDED_CHAR_NAME);
-	if (Z_USTRVAL_PP(ctx-> args[2])) {
-		efree(Z_USTRVAL_PP(ctx-> args[2]));
+	if (Z_USTRVAL_PP(ctx-> args[1])) {
+		efree(Z_USTRVAL_PP(ctx-> args[1]));
 	}
-    ZVAL_ASCII_STRINGL(*ctx-> args[2], (char *)name, length, ZSTR_DUPLICATE);
+    ZVAL_ASCII_STRINGL(*ctx-> args[1], (char *)name, length, ZSTR_DUPLICATE);
+    ZVAL_BOOL(*ctx-> args[2], nameChoice == U_EXTENDED_CHAR_NAME);
 
     ctx-> fci.retval_ptr_ptr = &retval_ptr;
 
@@ -730,8 +727,8 @@
     ectx.fci.no_separation = 1;
     ectx.fci_cache = empty_fcall_info_cache;
     ectx.args[0] = &zcode;
-    ectx.args[1] = &zextended;
-    ectx.args[2] = &zname;
+    ectx.args[1] = &zname;
+    ectx.args[2] = &zextended;
     ectx.fci.param_count = 3;
     ectx.fci.params = ectx.args;
     TSRMLS_SET_CTX(ectx.thread_ctx);

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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved