logo       

cvs: Zend(PHP_4_4) / zend_execute.c php-src NEWS: msg#00025

Subject: cvs: Zend(PHP_4_4) / zend_execute.c php-src NEWS
dmitry          Wed Aug 10 06:37:05 2005 EDT

  Modified files:              (Branch: PHP_4_4)
    /php-src    NEWS 
    /Zend       zend_execute.c 
  Log:
  Fixed bug #34064 (arr[] as param to function is allowed only if function 
receives argument by reference)
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.920.2.22&r2=1.1247.2.920.2.23&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.920.2.22 php-src/NEWS:1.1247.2.920.2.23
--- php-src/NEWS:1.1247.2.920.2.22      Wed Aug 10 04:24:10 2005
+++ php-src/NEWS        Wed Aug 10 06:37:03 2005
@@ -1,6 +1,8 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, Version 4.4.1
+- Fixed bug #34064 (arr[] as param to function is allowed only if function 
+  receives argument by reference). (Dmitry)
 - Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP). (Dmitry)
 - Fixed bug #33940 (array_map() fails to pass by reference when called
   recursively). (Dmitry)
http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.49.2.6&r2=1.316.2.49.2.7&ty=u
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.316.2.49.2.6 Zend/zend_execute.c:1.316.2.49.2.7
--- Zend/zend_execute.c:1.316.2.49.2.6  Mon Jun 27 02:15:48 2005
+++ Zend/zend_execute.c Wed Aug 10 06:37:04 2005
@@ -1324,6 +1324,9 @@
                                        /* Behave like FETCH_DIM_W */
                                        
zend_fetch_dimension_address(&EX(opline)->result, &EX(opline)->op1, 
&EX(opline)->op2, EX(Ts), BP_VAR_W TSRMLS_CC);
                                } else {
+                                       if (EX(opline)->op2.op_type == 
IS_UNUSED) {
+                                               zend_error(E_ERROR, "Cannot use 
[] for reading");
+                                       }
                                        /* Behave like FETCH_DIM_R, except for 
locking used for list() */
                                        
zend_fetch_dimension_address(&EX(opline)->result, &EX(opline)->op1, 
&EX(opline)->op2, EX(Ts), BP_VAR_R TSRMLS_CC);
                                        
AI_USE_PTR(EX(Ts)[EX(opline)->result.u.var].var);

-- 
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