Edit report at http://bugs.php.net/bug.php?id=29085&edit=1
ID: 29085 Updated by: paj...@php.net Reported by: christian at wenz dot org Summary: bad default include_path on Windows -Status: Assigned +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Windows PHP Version: 5.0.0RC3 Assigned To: pajoye Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-09-16 18:33:23] paj...@php.net First of all what you are asking has nothing to do with this bug. There is another report about this issue, marked as "to be documented". About you mysql problem, load the mysql extension(s) and everything will be fine. Please further support question on the php-windows or php-setup mailing list. Thanks for your understanding, ------------------------------------------------------------------------ [2009-09-16 18:30:37] php dot netsm at majorsite dot com So, what does this mean to those of us NOT yet on W2K3? php.net says support for W2K Server, but 5.3 requires newer software. I'm STILL unable to get the .ini working and I have a lot of pages simply not loading (now I'm very glad I didn't do a full xfer to .php pages this last few months as I wanted - I would be totally out of business!) I have some php pages working - the 'simple' ones that are self-contained, but all those that use mysql are DEAD as php says Fatal error: Call to undefined function mysql_connect() in [FILENAMEREMOVED] on line XXX I was able to get my MDaemon WorldClient working by doing a re-route and using its built-in server, but mysql is out. Just not sure where to go/what to try anymore..... if .ini would simply read, I'm sure all would be fine, but WHAT TO DO???? thanks for any help! ------------------------------------------------------------------------ [2009-09-09 06:18:28] christian at wenz dot org great to see that this bug/change request gets some lovin' after over five years ;-) This should do the trick in win32/build/config.w32: ---SNIP--- 107c107 < PHP_PREFIX = "C:\\php" + PHP_VERSION; --- > PHP_PREFIX = "C:\\php"; ---SNIP--- Not sure if this should go into 5.x -- of course I'd love to see it, but we would probably change the current behavior, and some people might actually have installed PHP into C:\php5 and expect the include_path to contain that automatically. ------------------------------------------------------------------------ [2009-09-08 23:50:05] paj...@php.net Agreed. Let change it in trunk at least, or maybe in 5.3.2 as well. ------------------------------------------------------------------------ [2009-09-07 23:43:37] php dot netsm at majorsite dot com I, too, find this VERY confusing, and I can't seem to get around it. Running Win2K Server (was to upgrade this year - market stopped that...) and have had PHP running on 5.0.3 for awhile (in C:\Program Files\PHP - the 'default' from the install). Went to upgrade and found latest versions need Win2003 Server or better, so I had to take 5.2.10, but I cannot get the .ini to read. Install.txt file says to avoid \program files\ so I deleted that and went for a 'clean' install to \php\ phpinfo() says I'm looking at loaded .ini from C:\PHP\php.ini I've tried setting the php.ini include_path = ".;c:\php;c:\php\ext", yet phpinfo() says include_path is .;C:\php5\pear The comments on this page were from 2004 - and the 'fix' was that "people want to run php4 and php5, though, how long has php4 been gone, and this issue is still relevant 5 years on..... this IS (IMHO) a BAD thing and very confusing. I look forward to some reply as I now have php running again, but none of my databases run, none of my 'include' files work, etc. And, please do not tell me to save my .ini file in some other location - I've tried \winnt\system32, \winnt, c:\ and certainly c:\php - nothing has worked. I am almost frustrated enough to try c:\php5 and even c:\php5\pear, but I am trying to use the install instructions! I think this php5 error is a bug and should be fixed - even in other versions of php (for those of us that can't afford the upgrade). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=29085 -- Edit this bug report at http://bugs.php.net/bug.php?id=29085&edit=1