On Tue, October 31, 2006 6:22 pm, Daevid Vincent wrote: >> There is nothing to "re-compile" here. >> The command line has an existing flag for you to specify the php.ini >> file, or to override any setting[s] within the php.ini file. > > Mebbe so, but that's equally obnoxious to pass this command line > parameter > to a lot of existing scripts. It's just easier to re-compile and > 'globally' > set the output_handler in a different php.ini file to what it used to > be > before we optimized. This script issue has just started to rear it's > ugly > head as we used to just use the default handler till recently. Our web > pages > work great (obviously), but we've noticed strangeness with the CLI > stuff. > Hence this dilemna. I just don't get this... You're going to recompile all of PHP to embed a string into the executable to point to a different "php.ini" instead of just putting that in your shell script somewhere? Okay. [shrug] Have at it. >> Bottom line, you can't step in the same river twice, and if php.ini >> tells PHP to set up an ob_* handler before your script runs, it's >> impossible to "undo" that just because you changed a setting that's >> already been acted upon. > > I would agree if PHP used a one-pass parser. But there is a > pre-parsing to > lint check and other 'setup' stuff. Seems that could utilize and > prepare the > set_ini() for the second pass which runs the actual script. > > Nothing is "impossible". It's just not implemented. But many set_ini() are meant to be changed in real-time with the execution of the script! So you'd have to parse for only the set_ini() that has your particular setting. Plus, there's no law that the args to set_ini() can't be from a database, or other dynamic data in a variable. So you'd have to execute the whole program to find out what the values are in some cases. Unless you want to pre-parse set_ini() for constants differently than set_ini() for variables. [shudder] If you think this should be implemented, feel free to take it up with -internals@ or just submit a patch... But I honestly think you haven't really examined this in enough detail to understand why you're just not making sense here... :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php