ID:               27316
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at koteroff dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         Feature/Change Request
 Operating System: Windows
 PHP Version:      5.0.0b4 (beta4)
 New Comment:

Php.ini issues aside, why would you want to add php folder to the path?
It should work without it, at least on newer windows versions. What
version of windows are you using?


Previous Comments:
------------------------------------------------------------------------

[2004-02-18 17:26:30] php at koteroff dot ru

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 this bug report at http://bugs.php.net/?id=27316&edit=1

Reply via email to