cvs: php-src /pear/PEAR Common.php

From: Date: Sat, 17 Jan 2004 17:19:46 +0000
Subject: cvs: php-src /pear/PEAR Common.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-58@lists.php.net to get a copy of this message
cellog Sat Jan 17 12:19:46 2004 EDT Modified files: /php-src/pear/PEAR Common.php Log: fix Bug #594 PEAR_Common::analyzeSourceCode fails on string with $var and { also fixes SOAP packaging error Index: php-src/pear/PEAR/Common.php diff -u php-src/pear/PEAR/Common.php:1.116 php-src/pear/PEAR/Common.php:1.117 --- php-src/pear/PEAR/Common.php:1.116 Thu Jan 8 12:33:12 2004 +++ php-src/pear/PEAR/Common.php Sat Jan 17 12:19:45 2004 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.116 2004/01/08 17:33:12 sniper Exp $ +// $Id: Common.php,v 1.117 2004/01/17 17:19:45 cellog Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -1310,6 +1310,7 @@ $used_functions = array(); $extends = array(); $nodeps = array(); + $inquote = false; for ($i = 0; $i < sizeof($tokens); $i++) { if (is_array($tokens[$i])) { list($token, $data) = $tokens[$i]; @@ -1317,7 +1318,17 @@ $token = $tokens[$i]; $data = ''; } + if ($inquote) { + if ($token != '"') { + continue; + } else { + $inquote = false; + } + } switch ($token) { + case '"': + $inquote = true; + break; case T_CURLY_OPEN: case T_DOLLAR_OPEN_CURLY_BRACES: case '{': $brace_level++; continue 2;

« previous php.pear.core (#58) next »