On 8/9/07, Bob Klos <[EMAIL PROTECTED]> wrote:
>
> Occasionally, the  environment variables are corrupted,
> usually ending up with a blank page since  the app has
> no or corrupt information to work from.
>
> a simple example  would be:
>
> putenv("QUERY_STRING=$url");
> putenv("HTTP_COOKIE=$HTTP_COOKIE");
>

I have near-zero experience with putenv(), but my first impression on
looking at the code is that it looks like it will break if shell
metacharacters or anything other than low ascii is in the php vars.

Could there be stray newlines or some other characters in the values
that would cause breakage?

-- 
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to