php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39638 Configuring PHPIniDir causes error
Submitted: 2006-11-26 18:26 UTC Modified: 2006-11-27 10:07 UTC
From: huichunwuca at yahoo dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.2.0 OS: Windows XP Home Edition SP 2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: huichunwuca at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-11-26 18:26 UTC] huichunwuca at yahoo dot com
Description:
------------
My php.ini file is located in c:/software/PHP. If I DO NOT
specify PHPIniDir in Apache configuration file httpd.conf,
my php page, which simply has a phpInfo() function, is displayed correctly except that "Configuration File (php.ini) Path" points to C:/Windows. There is NO php.ini
file in C:/Windows.

If I DO NOT specify PHPIniDir but php.ini file IS in C:/Windows, I got a blank  page.

If I DO specify PHPIniDir as follows:
    PHPIniDir "C:/software/PHP"
Then I got a blank page -- unless php.ini file is NOT in
C:/software/PHP

I do not have any other php.ini file elsewhere and this is
my first PHP installation ever on this machine.




Reproduce code:
---------------
httpd.conf -- only the lines I added

LoadModule php5_module c:/software/PHP/php5apache2_2.dll
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/software/PHP"

test1.php:

<html>
<head>
<title>Example #1 TDavid's Very First PHP Script ever!</title>
</head>
<body>
<? phpInfo();?>
</body>
</html>

Expected result:
----------------
PHP module details.

Actual result:
--------------
A blank page if PHPInitDir is configured correctly

An expected page with PHP module details if PHPInitDir is NOT configured and php.ini is NOT in C:/Windows 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-26 19:47 UTC] huichunwuca at yahoo dot com
I copied php.ini-reocmmended and renamed it php.ini.
No modification is made to php.ini.
 [2006-11-27 10:07 UTC] tony2001@php.net
http://www.php.net/manual/en/ini.core.php
See description of "short_open_tag" ini option.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC