From: php at koteroff dot ru Operating system: Windows PHP version: 5.0.0b4 (beta4) PHP Bug Type: Feature/Change Request Bug description: Automatically add PHP directory to PATH
Description: ------------ New PHP distribution directory structure is great. Now php.exe works immediately after unpacking & modifying php.ini. But with mod_php thinks are worse. To make him start I have to: 1. Set PHPRC environment variable equal to PHP5 directory path (to search php.ini in this directory - for example, let it be z:/usr/local/php5). 2. Manually add z:/usr/local/php5 to PATH to allow PHP search for libmysql.dll, libeay32.dll etc. while loading extensions. It is too importunate and makes mod_php usage greatly harder than CGI version using. That's why I ask you to add the following features: 1. By default search php.ini not only in apache directory (it's silly) and in windows directory (it's silly twice - nothing personal: nobody wants to trash windows folder), but at php5apache.dll directory too. 2. Also add directory in which php5apache.dll resides to PATH (possibly at php5apache startup code). These changes will unversalize PHP and make mod_php installation not harder than CGI installation. (I'd like to say thet a lot of people uses Windows-PHP in debugging purposes. That's why they have 2 or 3 different version of PHP at the same server.) To get current module name, we may use GetModuleFileName API call. To set environment variable PATH GetEnvironmentVariable and SetEnvironmentVariable may be used. Please answer what do you thing about all of these? -- Edit bug report at http://bugs.php.net/?id=27316&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27316&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27316&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27316&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27316&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27316&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27316&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27316&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27316&r=support Expected behavior: http://bugs.php.net/fix.php?id=27316&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27316&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27316&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27316&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27316&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27316&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27316&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27316&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27316&r=float
