logo       

cvs: ZendEngine2 / zend_API.c: msg#00002

Subject: cvs: ZendEngine2 / zend_API.c
andrei          Wed Aug  2 17:36:28 2006 UTC

  Modified files:              
    /ZendEngine2        zend_API.c 
  Log:
  Add '&' modifier (for 's' type) that will apply the specified converter
  during conversion of Unicode strings.
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.389&r2=1.390&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.389 ZendEngine2/zend_API.c:1.390
--- ZendEngine2/zend_API.c:1.389        Tue Jul 25 06:50:26 2006
+++ ZendEngine2/zend_API.c      Wed Aug  2 17:36:28 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_API.c,v 1.389 2006/07/25 06:50:26 derick Exp $ */
+/* $Id: zend_API.c,v 1.390 2006/08/02 17:36:28 andrei Exp $ */
 
 #include "zend.h"
 #include "zend_execute.h"
@@ -435,7 +435,16 @@
                                                /* break omitted intentionally 
*/
 
                                        case IS_UNICODE:
-                                               if (c == 'S') {
+                                               /* handle conversion of Unicode 
to binary with a specific converter */
+                                               if (c == 's' && *spec_walk == 
'&') {
+                                                       UConverter *conv = 
va_arg(*va, UConverter *);
+                                                       
SEPARATE_ZVAL_IF_NOT_REF(arg);
+                                                       
convert_to_string_with_converter(*arg, conv);
+                                                       *p = Z_STRVAL_PP(arg);
+                                                       *pl = Z_STRLEN_PP(arg);
+                                                       spec_walk++;
+                                                       break;
+                                               } else if (c == 'S') {
                                                        return "definitely a 
binary string";
                                                }
                                                /* fall through */
@@ -862,8 +871,8 @@
                                min_num_args = max_num_args;
                                break;
 
-                       case '/':
-                       case '!':
+                       case '/': case '!':
+                       case '&':
                                /* Pass */
                                break;
 
@@ -948,7 +957,7 @@
                                        break;
 
                                case '|': case '!':
-                               case '/':
+                               case '/': case '&':
                                        /* pass */
                                        break;
 

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe