andrei          Mon Dec 18 20:47:57 2006 UTC

  Modified files:              
    /php-src    unicode-progress.txt 
    /php-src/ext/standard       basic_functions.c 
  Log:
  Unicode support in get_cfg_var().
  
  
http://cvs.php.net/viewvc.cgi/php-src/unicode-progress.txt?r1=1.67&r2=1.68&diff_format=u
Index: php-src/unicode-progress.txt
diff -u php-src/unicode-progress.txt:1.67 php-src/unicode-progress.txt:1.68
--- php-src/unicode-progress.txt:1.67   Fri Dec 15 23:28:09 2006
+++ php-src/unicode-progress.txt        Mon Dec 18 20:47:57 2006
@@ -14,12 +14,6 @@
     set_include_path(), get_include_path(), restore_include_path()
         Params API, depends on INI mechanism
 
-    get_cfg_var()
-        IS_UNICODE support for varname
-
-    parse_ini_file()
-        Params API, unicode filename support, depends on INI mechaniem
-
   array.c
   -------
     natsort(), natcasesort()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/basic_functions.c?r1=1.836&r2=1.837&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.836 
php-src/ext/standard/basic_functions.c:1.837
--- php-src/ext/standard/basic_functions.c:1.836        Mon Dec 18 20:40:51 2006
+++ php-src/ext/standard/basic_functions.c      Mon Dec 18 20:47:57 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: basic_functions.c,v 1.836 2006/12/18 20:40:51 andrei Exp $ */
+/* $Id: basic_functions.c,v 1.837 2006/12/18 20:47:57 andrei Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -4807,7 +4807,7 @@
 }
 /* }}} */
 
-/* {{{ proto string get_cfg_var(string option_name)
+/* {{{ proto string get_cfg_var(string option_name) U
    Get the value of a PHP configuration option */
 PHP_FUNCTION(get_cfg_var)
 {
@@ -4815,14 +4815,14 @@
        int varname_len;
        char *value;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &varname, 
&varname_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s&", &varname, 
&varname_len, UG(utf8_conv)) == FAILURE) {
                return;
        }
 
        if (cfg_get_string(varname, &value) == FAILURE) {
                RETURN_FALSE;
        }
-       RETURN_STRING(value, 1);
+       RETURN_UTF8_STRING(value, ZSTR_DUPLICATE);
 }
 /* }}} */
 

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

Reply via email to