mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove redundant middle newlines in "Autotools" related files
This syncs few minor left-overs in "Autotools" related files: - redundant middle newlines removed (in man pages the duplicate newlines are also ignored and are not visible in the man page anyway) - Minor mixed indentation synced [skip ci]
This commit is contained in:
parent
634708a14f
commit
9fcc1bca8a
7 changed files with 2 additions and 25 deletions
|
@ -20,14 +20,11 @@ define('REPORT_LEVEL', 1); // 0 reports less false-positives. up to level 5.
|
|||
define('VERSION', '7.0'); // minimum is 7.0
|
||||
define('PHPDIR', realpath(dirname(__FILE__) . '/../..'));
|
||||
|
||||
|
||||
// be sure you have enough memory and stack for PHP. pcre will push the limits!
|
||||
ini_set('pcre.backtrack_limit', 10000000);
|
||||
|
||||
|
||||
// ------------------------ end of config ----------------------------
|
||||
|
||||
|
||||
$API_params = array(
|
||||
'a' => array('zval**'), // array
|
||||
'A' => array('zval**'), // array or object
|
||||
|
@ -64,7 +61,6 @@ function error($str, $level = 0)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/** this updates the global var $line (for error reporting) */
|
||||
function update_lineno($offset)
|
||||
{
|
||||
|
@ -99,7 +95,6 @@ function update_lineno($offset)
|
|||
} while (true);
|
||||
}
|
||||
|
||||
|
||||
/** parses the sources and fetches its vars name, type and if they are initialized or not */
|
||||
function get_vars($txt)
|
||||
{
|
||||
|
@ -124,7 +119,6 @@ function get_vars($txt)
|
|||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
/** run diagnostic checks against one var. */
|
||||
function check_param($db, $idx, $exp, $optional, $allow_uninit = false)
|
||||
{
|
||||
|
@ -184,7 +178,6 @@ function get_params($vars, $str)
|
|||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
/** run tests on a function. the code is passed in $txt */
|
||||
function check_function($name, $txt, $offset)
|
||||
{
|
||||
|
@ -291,7 +284,6 @@ function check_function($name, $txt, $offset)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/** the main recursion function. splits files in functions and calls the other functions */
|
||||
function recurse($path)
|
||||
{
|
||||
|
@ -319,7 +311,6 @@ function recurse($path)
|
|||
if (count($split) < 2) continue; // no functions defined on this file
|
||||
array_shift($split); // the first part isn't relevant
|
||||
|
||||
|
||||
// generate the line offsets array
|
||||
$j = 0;
|
||||
$lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
@ -333,7 +324,6 @@ function recurse($path)
|
|||
$GLOBALS['lines_offset'] = $lines_offset;
|
||||
$GLOBALS['current_file'] = $file;
|
||||
|
||||
|
||||
for ($i = 0; $i < count($split); $i+=2) {
|
||||
// if the /* }}} */ comment is found use it to reduce false positives
|
||||
// TODO: check the other indexes
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
|
||||
$usage = <<<USAGE
|
||||
|
||||
Usage: php find_tested.php [path_to_test_files] ([extension])
|
||||
|
@ -16,7 +15,6 @@ A test status of "verify" for a method means that there is at least one other me
|
|||
|
||||
USAGE;
|
||||
|
||||
|
||||
/* method record fields */
|
||||
define("CLASS_NAME", "CLASS_NAME");
|
||||
define("METHOD_NAME", "METHOD_NAME");
|
||||
|
@ -25,7 +23,6 @@ define("IS_DUPLICATE", "IS_DUPLICATE");
|
|||
define("IS_TESTED", "IS_TESTED");
|
||||
define("TESTS", "TESTS");
|
||||
|
||||
|
||||
// process command line args
|
||||
$num_params = $argc;
|
||||
if ($num_params < 2 || $num_params > 3) {
|
||||
|
@ -50,7 +47,6 @@ if ($num_params == 3) {
|
|||
$extension_name = false;
|
||||
}
|
||||
|
||||
|
||||
$method_info = populate_method_info();
|
||||
|
||||
if ($extension_name != false) {
|
||||
|
@ -224,5 +220,4 @@ function map_token_value($x) {
|
|||
return $x[1];
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue