ID: 20753
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: PHP options/info functions
Operating System: WinXP
PHP Version: 4.2.3
New Comment:
Also it's worth noting that phpinfo() will say:
// Is working
c:\foo\php.ini
As opposed to:
// Is not working
c:\foo\
In otherwords, the name of php.ini will be seen too, not just the
path.
Also, please look in your windows options to see if known extensions
are being hidden. When looking at the list of files there should be an
option in:
Tools -> Folder Options -> View ->
"Hide file extensions with known types" [ ]
I believe this defaults to on. Not sure about WinXP but this has
existed in other versions. Anyway, php.ini.ini would show as php.ini
in this case. Also, this may have been the reason why you added the
second .ini. Please confirm and for the love that is sane turn that
silly feature off :)
Previous Comments:
------------------------------------------------------------------------
[2002-12-02 09:51:17] [EMAIL PROTECTED]
This *is* bug (for MS), but also a "support issue" (for PHP). Turns
out that WinXP refuses to display the final ".ini" extension, even in
the "properties" display, the file-rename box, or the details list; my
file had actually been named "php.ini.ini", and all I could ever see at
all in any GUI was "php.ini" (except when I finally used the command
line prompt). Sorry for taking your time, but this is an extremely
subtle problem: perhaps the documentation could mention that the
renaming and name-checking must happen in the command prompt ("DOS"),
because otherwise there will be no error that the file wasn't found.
Take care!
------------------------------------------------------------------------
[2002-12-01 23:12:43] [EMAIL PROTECTED]
OK, finally got it working: here's the top of phpinfo():
PHP Version 4.4.0-dev
System Windows NT localhost 5.1 build 2600
Build Date Dec 2 2002 04:12:18
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
PHP API 20020918
Right below, it shows:
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
The file c:\windows\php.ini still has these entries:
allow_call_time_pass_reference = Off
allow_url_fopen = Off
So it looks like even the CVS snapshot is ignoring the php.ini file it
expects to see. Glad it doesn't want c:\winnt any more; that's an
improvement. But the "bug" (or "support issue") remains...
------------------------------------------------------------------------
[2002-12-01 22:07:30] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-12-01 21:55:37] [EMAIL PROTECTED]
I assume you mean what phpinfo() prints out in the table at the top
(I've clipped it here):
System Windows NT 5.1 build 2600
Build Date Sep 6 2002 10:38:51
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path c:\winnt
Debug Build no
Thread Safety enabled
I'd be happy to try changing c:\winnt to some other directory, but I
have no idea how to, or where that is configured.
------------------------------------------------------------------------
[2002-12-01 19:49:43] [EMAIL PROTECTED]
This is most likely another support question, but let's try help you
anyway: What is said by phpinfo() for where it's trying to read php.ini
from?
------------------------------------------------------------------------
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/20753
--
Edit this bug report at http://bugs.php.net/?id=20753&edit=1