logo       

cvs: Zend(PHP_4_4) / zend_compile.c: msg#00175

Subject: cvs: Zend(PHP_4_4) / zend_compile.c
dmitry          Fri Jun 24 07:48:33 2005 EDT

  Modified files:              (Branch: PHP_4_4)
    /Zend       zend_compile.c 
  Log:
  Partial fix for bug #26584 (Class member - array key overflow)
  
  
http://cvs.php.net/diff.php/Zend/zend_compile.c?r1=1.240.2.10.2.2&r2=1.240.2.10.2.3&ty=u
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.10.2.2 Zend/zend_compile.c:1.240.2.10.2.3
--- Zend/zend_compile.c:1.240.2.10.2.2  Tue Jun  7 04:49:04 2005
+++ Zend/zend_compile.c Fri Jun 24 07:48:30 2005
@@ -1903,9 +1903,16 @@
                                zend_hash_update(result->u.constant.value.ht, 
offset->u.constant.value.str.val, offset->u.constant.value.str.len+1, &element, 
sizeof(zval *), NULL);
                                zval_dtor(&offset->u.constant);
                                break;
+                       case IS_NULL:
+                               zend_hash_update(result->u.constant.value.ht, 
"", 1, &element, sizeof(zval *), NULL);
+                               break;
                        case IS_LONG:
+                       case IS_BOOL: 
                                
zend_hash_index_update(result->u.constant.value.ht, 
offset->u.constant.value.lval, &element, sizeof(zval *), NULL);
                                break;
+                       case IS_DOUBLE:
+                               
zend_hash_index_update(result->u.constant.value.ht, 
(long)offset->u.constant.value.dval, &element, sizeof(zval *), NULL);
+                               break;
                }
        } else {
                zend_hash_next_index_insert(result->u.constant.value.ht, 
&element, sizeof(zval *), NULL);

-- 
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:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
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