zeroc-ice (3.3.1-12) 30-phpapi-200906-ftbfs.patch

Summary

 php/src/IcePHP/Marshal.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

From: Thorvald Natvig
Date: Feb 9, 2010

Bug#569037: php-zeroc-ice FTBFS with new PHP API
Package: php-zeroc-ice
Version: 3.3.1-11
Severity: important
Tags: patch
Justification: fails to build from source

With the new PHP API released, php-zeroc-ice fails to build. The applied
trivial patch fixes this, and has been tested on fully updated unstable on
i386.


--- zeroc-ice-3.3.1/php/src/IcePHP/Marshal.cpp.orig	2010-02-09 15:42:58.000000000 +0100
+++ zeroc-ice-3.3.1/php/src/IcePHP/Marshal.cpp	2010-02-09 15:43:51.000000000 +0100
@@ -1941,7 +1941,7 @@
     this->TSRMLS_C = TSRMLS_C;
 #endif
 
-    ZVAL_ADDREF(_value);
+    Z_ADDREF_P(_value);
 
     _class = Z_OBJCE_P(_value);
 }