diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/tokenizer/tokenizer.php | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/tokenizer/tokenizer.php')
-rw-r--r-- | ext/tokenizer/tokenizer.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/tokenizer/tokenizer.php b/ext/tokenizer/tokenizer.php deleted file mode 100644 index c13063c628..0000000000 --- a/ext/tokenizer/tokenizer.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -if(!extension_loaded('tokenizer')) { - dl('tokenizer.so'); -} - -$fp = fopen('php://stdin', 'r'); -while (!feof($fp)) { - $content .= fread($fp, 4096); -} -fclose($fp); - -$tokens = token_get_all($content); - -$count = count($tokens); -$state = 0; -for ($i = 0; $i < $count; $i++) { - $token = $tokens[$i]; - if (is_array($token)) { - if ($state == 1 && $token[0] == T_STRING) { - $token[1] = preg_replace('!([a-z])([A-Z])!e', '"$1_".strtolower("$2")', $token[1]); - $state = 0; - } else if ($token[0] == T_FUNCTION) { - $state = 1; - } - $chunk = $token[1]; - } else { - $chunk = $token; - } - $output .= $chunk; -} - -print $output; - -?> |