From d09652cb2e9d9853ec3fa4c2d328d26553fac330 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 8 Feb 2005 10:42:16 +0000 Subject: first fix for debian php package abi changes; zend_register_internal_class_ex gained a mysterious parameter --- php/patch_swig_output.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'php') diff --git a/php/patch_swig_output.py b/php/patch_swig_output.py index 1ab9f6ea..9b548ac2 100755 --- a/php/patch_swig_output.py +++ b/php/patch_swig_output.py @@ -135,6 +135,7 @@ with: if(arg_count > 1 - argbase) { """ +import re import sys wrap = sys.stdin.read() @@ -187,4 +188,8 @@ wrap = wrap.replace('if(zend_get_parameters_array_ex(arg_count-argbase,args)!=SU for i in range(10): wrap = wrap.replace('if(arg_count > %d) {' % i, 'if(arg_count > %d - argbase) {' % i) + +wrap = re.sub(r'zend_register_internal_class_ex(.*)NULL,NULL\)', + r'zend_register_internal_class_ex\1NULL,NULL TSRMLS_CC)', wrap) + print wrap -- cgit