Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
mod_ruby breaks php
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Curt Sampson, post: 4465215"] Well, if anybody's curious, the reason that my PHP code broke after running a mod_ruby script is that PHP doesn't touch the environment, but mod_ruby replaces the environment with what would be provided to a CGI script. My PHP stuff for getting a database connection relied on an environment variable to supply the schema name, and so after running a ruby script during testing, it would in the future connect to the wrong database schema, giving me bogus information. Adding a SetEnv directive to my http config ensured that the variable is passed. However, it's arguably a bug that mod_ruby does not restore the environment when it's finished processing a request, so that other modules see apache's original environment rather than mod_ruby's modified one. cjs [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
mod_ruby breaks php
Top