logo       

cvs: ZendEngine2(PHP_5_2) / zend_API.c /tests bug42119.phpt php-src NEWS: msg#00001

Subject: cvs: ZendEngine2(PHP_5_2) / zend_API.c /tests bug42119.phpt php-src NEWS
dmitry          Wed Aug  1 10:56:45 2007 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests  bug42119.phpt 

  Modified files:              
    /php-src    NEWS 
    /ZendEngine2        zend_API.c 
  Log:
  Fixed bug #42119 (array_push($arr,&$obj) doesn't work with 
zend.ze1_compatibility_mode On)
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.870&r2=1.2027.2.547.2.871&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.870 php-src/NEWS:1.2027.2.547.2.871
--- php-src/NEWS:1.2027.2.547.2.870     Wed Aug  1 10:39:32 2007
+++ php-src/NEWS        Wed Aug  1 10:56:45 2007
@@ -78,6 +78,8 @@
   (Ilia)
 - Fixed bug #42134 (oci_error() returns false after oci_new_collection() 
   fails). (Tony)
+- Fixed bug #42119 (array_push($arr,&$obj) doesn't work with
+  zend.ze1_compatibility_mode On). (Dmitry)
 - Fixed Bug #42112 (deleting a node produces memory corruption). (Rob)
 - Fixed Bug #42107 (sscanf broken when using %2$s format parameters). (Jani)
 - Fixed bug #42090 (json_decode causes segmentation fault). (Hannes)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.32&r2=1.296.2.27.2.33&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.296.2.27.2.32 
ZendEngine2/zend_API.c:1.296.2.27.2.33
--- ZendEngine2/zend_API.c:1.296.2.27.2.32      Fri Jul  6 12:17:58 2007
+++ ZendEngine2/zend_API.c      Wed Aug  1 10:56:45 2007
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_API.c,v 1.296.2.27.2.32 2007/07/06 12:17:58 tony2001 Exp $ */
+/* $Id: zend_API.c,v 1.296.2.27.2.33 2007/08/01 10:56:45 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_execute.h"
@@ -154,7 +154,9 @@
        while (param_count-->0) {
                zval **value = (zval**)(p-arg_count);
 
-               if (EG(ze1_compatibility_mode) && Z_TYPE_PP(value) == 
IS_OBJECT) {
+               if (EG(ze1_compatibility_mode) &&
+                   Z_TYPE_PP(value) == IS_OBJECT &&
+                   !(*value)->is_ref) {
                        zval *value_ptr;
                        char *class_name;
                        zend_uint class_name_len;

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug42119.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug42119.phpt
+++ ZendEngine2/tests/bug42119.phpt

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