cvs: pearweb /include signatures.php

From: Date: Tue, 21 May 2002 11:48:33 +0000
Subject: cvs: pearweb /include signatures.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4014@lists.php.net to get a copy of this message
cox Tue May 21 07:48:33 2002 EDT Modified files: /pearweb/include signatures.php Log: get rid of block comments to easy the detection of signatures Index: pearweb/include/signatures.php diff -u pearweb/include/signatures.php:1.9 pearweb/include/signatures.php:1.10 --- pearweb/include/signatures.php:1.9 Tue May 21 07:47:29 2002 +++ pearweb/include/signatures.php Tue May 21 07:48:33 2002 @@ -36,6 +36,8 @@ // format: array( array(returntype, methodname, paramlist), ... ) settype($signatures, "array"); $matches = array(); + // get rid of block comments + $contents = preg_replace('|/\*.*\*/|Us', '', $contents); if (preg_match_all('/([ \*\+])?proto\s+([a-z|]+)\s+([a-zA-Z0-9_:]+)\s*\(([^\)]*)\)\s*?\n(\s*?\/\/\s+?(.*?)\s*?\n)?/s', $contents, $matches)) { for ($i = 0; $i < sizeof($matches[0]); $i++) {

« previous php.pear.cvs (#4014) next »