From:             jcs at austin dot rr dot com
Operating system: Windows XP
PHP version:      5.2.5
PHP Bug Type:     PHP options/info functions
Bug description:  Parse error with installer generated php.ini

Description:
------------
Hi,

I am having a hard time getting PHP to read the phi.ini file which
I want to enable MySQL extensions with. If I run phpinfo(), I see it
is lookong in C:\WINDOWS for the file but there is no loaded file.
Copying the php.ini file to C:\WINDOWS does not help.

OK:

PHP installed to:

1) C:\PHP
2) extensions in:

   C:\PHP\ext

3) php.ini file in C:\PHP

   This was the installer generated file.

4) In a command window at the command line in C:\PHP

   I run php -c . php.ini

I get the following:

PHP Parse error: syntax error, unexpected T_LOGICAL_AND in C:\PHP\php.ini
on line 126

The line is just a comment...I don't get it (see below).

; NOTE: Using short tags should be avoided when developing applications
or


Please help, I have wasted so much time on this.

I think the loading of the php.ini is failing which is why
my extensions don't work.

Regards.



Reproduce code:
---------------
;     since short tags may not be supported on the target server.

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
 zend.ze1_compatibility_mode = Off

; Allow the <? tag.  Otherwise, only <?php and <script> tags are
recognized.

; NOTE: Using short tags should be avoided when developing applications
or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision    =  14

; Enforce year 2000 compliance (will cause problems with non-compliant
browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies)
even


-- 
Edit bug report at http://bugs.php.net/?id=44349&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44349&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44349&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44349&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44349&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44349&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44349&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44349&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44349&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44349&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44349&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44349&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44349&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44349&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44349&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44349&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44349&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44349&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44349&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44349&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44349&r=mysqlcfg

Reply via email to