Re: PHP_CompatInfo 2.0.0RC4 and additional reports (global and include ) - need feeback
| From: | Laurent Laville | Date: | Sat, 16 Apr 2011 12:38:26 +0000 |
| Subject: | Re: PHP_CompatInfo 2.0.0RC4 and additional reports (global and include ) - need feeback | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54214@lists.php.net to get a copy of this message | ||
Le 15/04/2011 00:44, Jan Schneider a écrit :
Zitat von Laurent Laville <pear@laurent-laville.org>:Here are the new global report ------------------------------------------------------------------------------- PHP COMPAT INFO GLOBAL SUMMARY -------------------------------------------------------------------------------Hello all, A draft of global and include reports are ready, but I wanted your feedback about such contents. Do you think it's enough or not ?Are there detailed reports available too? Without those, this information is of limited use. At least for globals I'd find it useful to see *which* global variables are actually used.
GLOBAL VERSION COUNT-------------------------------------------------------------------------------
_PEAR_PACKAGEUPDATE_ERRORS $GLOBALS 4.0.0 1
$HTTP_POST_VARS 4.0.0 1
vname $HTTP_POST_VARS 4.0.0 1
vname $_POST 4.1.0 1
$init global 4.0.0 2
-------------------------------------------------------------------------------
A TOTAL OF 5 GLOBAL(S) WERE FOUND
REQUIRED PHP 4.1.0 (MIN)
-------------------------------------------------------------------------------
Time: 1 second, Memory: 7.75Mb
-------------------------------------------------------------------------------
Result of parsing script below
<?php
$GLOBALS['_PEAR_PACKAGEUPDATE_ERRORS'] = 1;
//
global $init;
global $HTTP_POST_VARS;
echo $HTTP_POST_VARS['vname'];
echo $_POST['vname'];
function Bar()
{
global $init;
$included_files = get_included_files();
}
?>
About include report, I've let down this one. Do not gave much more information than API could do.
Laurent