Re: cvs: php4 /ext/swf swf.c
| From: | (Marcus Börger) | Date: | Sat, 18 Jan 2003 21:15:44 +0000 |
| Subject: | Re: cvs: php4 /ext/swf swf.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-18025@lists.php.net to get a copy of this message | ||
At 21:35 18.01.2003, Marcus Börger wrote:
At 21:35 18.01.2003, Ilia A. wrote:You can change all occurences when a) you skip main/main.c b) you use two sed commands in one go:My next goal is to remove some 690 php_error() form ext/ and about 100 or so zend_error(). So, if you have any automated tools, they'd be of great help. IliaI meant the php_error thing and for that i have a script: http://marcus-boerger.de/php/ext/docref.txt I hope that helps :-) marcus p.s: Wow excluding google bot it was downloaded 300 times...121 times referred from http://www.zend.com/zend/week/week112.php - iguess avin was a bit missleading in his summary.
cat ${i} |
sed "s/\(php_error\|zend_error\)\([[:space:]]*(\)\([^\"]*\"\)\(%s()\:\?[[:space:]]*\)\(.*\)\(,[[:space:]]*get_active_function_name[[:space:]]*([[:space:]]*TSRMLS_C[[:space:]]*)\)/php_error_docref(NULL TSRMLS_CC, \3\5/g" | \
sed "s/\(php_error\|zend_error\)\([[:space:]]*([[:space:]]*\)/php_error_docref(NULL TSRMLS_CC, /g" \
$i.tmp
sorry i do not have the time to make a new skrip. maybe tomorrow or on monday if you cna wait...
marcus