[Phpmyadmin-devel] PEAR::PHP_Compat
Sebastian Mendel
lists at sebastianmendel.de
Fri Dec 9 00:26:11 CET 2005
Hi,
how about using PHP_Compat ?
for example in register_globals()
we could just do
<?php
require_once 'PHP/Compat.php';
PHP_Compat::loadFunction('array_walk_recursive');
array_walk_recursive( $_SERVER, 'strip_tags' );
array_walk_recursive( $_ENV, 'strip_tags' );
?>
this will improve speed on systems with PHP having this functions natively.
i think there are more places where tis would be a benefit
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
More information about the Developers
mailing list