Re: [phplib-users] register_long_arrays
by Layne Weathers other posts by this author
Jan 14 2007 2:06PM messages near this date
Re: [phplib-users] register_long_arrays
|
Re: [phplib-users] register_long_arrays
> I noticed that in a few places, you used code like:
>
> if (!isset($_POST)) {
> global $HTTP_POST_VARS, $HTTP_POST_FILES;
> $_POST = $HTTP_POST_VARS;
> $_FILES = $HTTP_POST_FILES;
> }
>
> I don't have an old system for testing this, but can we assume
> that all arrays are always defined? Is it possible that
> reference to $HTTP_POST_FILES could trigger warning?
I really don't have a good idea of who's using PHPLib these days -
its probably ridiculous to think that anyone using a PHP version
less than 4.1 will use the latest CVS release of PHPLib, but I was
wanting to not break backwards compatibility without warning.
Because the references to the long arrays will only be reached if
the auto-globals aren't set, I don't think it should trigger any
warnings for you. I could be wrong - please let me know if it does
and I'll go ahead and break the backwards compatibility.
--
Layne Weathers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
phplib-users mailing list
phplib-users@[...].net
https://lists.sourceforge.net/lists/listinfo/phplib-users
Thread:
Frank Bax
Frank Bax
Layne Weathers
Layne Weathers
Richard Archer
Layne Weathers
Richard Archer
|