diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-05-26 09:37:25 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-05-26 09:37:25 +0000 |
commit | 4fde37c81fce966c6eef285b7333e7ff91d34fe8 (patch) | |
tree | 580693cbacb3d6bebb5f0c18d56b649251a39a0e /php | |
parent | 9d5f532fef2838e3a72a074d59878231ac4e2030 (diff) | |
download | lasso-4fde37c81fce966c6eef285b7333e7ff91d34fe8.tar.gz lasso-4fde37c81fce966c6eef285b7333e7ff91d34fe8.tar.xz lasso-4fde37c81fce966c6eef285b7333e7ff91d34fe8.zip |
Fix escaping of parenthesis inside a regex
Diffstat (limited to 'php')
-rwxr-xr-x | php/patch_swig_output.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/php/patch_swig_output.py b/php/patch_swig_output.py index ba597e36..0cb2850e 100755 --- a/php/patch_swig_output.py +++ b/php/patch_swig_output.py @@ -228,10 +228,10 @@ def rep(match): wrap = function_pattern.sub(rep, wrap) wrap = re.sub(r'zend_register_internal_class_ex(.*)NULL,NULL\)', - r'zend_register_internal_class_ex\1NULL,NULL TSRMLS_CC)', wrap) + r'zend_register_internal_class_ex\1NULL,NULL TSRMLS_CC\)', wrap) -wrap = re.sub('zend_rsrc_list_get_rsrc_type(.*)lval *)', - r'zend_rsrc_list_get_rsrc_type\1lval TSRMLS_CC)', wrap) +wrap = re.sub('zend_rsrc_list_get_rsrc_type(.*)lval *\)', + r'zend_rsrc_list_get_rsrc_type\1lval TSRMLS_CC\)', wrap) # Bis for swig 1.3.33 # (1) |