Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: ficoba (---.w83-197.abo.wanadoo.fr)
Date: February 09, 2010 12:00AM

Hello,

I have install packages of PHP 5.3.0 available in 'Addons' and I can't start Wampserver 2.0 !!!
I have the message box after double click on shortcut 'Wampserver' =>

"The configuration file contains a syntax error on line 811:
[EParseError Invalid section tag]"

The line in "wampmanager.ini" is =>

--------------------------------------------
811. [php_ext_php_oci8.dll ; Use with Oracle 10gR2 Instant Client
812. ]

AND

827. [php_ext_php_oci8_11g.dll ; Use with Oracle 11g Instant Client
828. ]

AND

655. Type: item; Caption: "php_oci8"; Action: multi; Actions: php_ext_php_oci8
656. Type: item; Caption: "php_oci8.dll ; Use with Oracle 10gR2 Instant Client
657. "; Action: multi; Actions: php_ext_php_oci8.dll ; Use with Oracle 10gR2 Instant Client

AND

659. Type: item; Caption: "php_oci8_11g"; Action: multi; Actions: php_ext_php_oci8_11g
660. Type: item; Caption: "php_oci8_11g.dll ; Use with Oracle 11g Instant Client
661. "; Action: multi; Actions: php_ext_php_oci8_11g.dll ; Use with Oracle 11g Instant Client
--------------------------------------------

If I debug the lines manually I have error in line 827, after 656 and after 660 !

Knowing that the file "wampmanager.ini" is regenerated each launch of application WampServer.

How do I fix this problem without losing my data from my databases before update PHP 5.3.0 ?



Best regards,
Thibaut G.

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: chrisjh (---.14.193-77.rev.gaoland.net)
Date: March 07, 2010 03:57PM

Hi Thibaut,
I have the same problem. Did you sort it out?
Chris

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: March 07, 2010 06:11PM

Left click wamp tray icon choose PHP > PHP.ini find these lines
extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client

Delete ; Use with Oracle 10gR2 Instant Client and ; Use with Oracle 11g Instant Client

Save the php.ini. Now right click wamp tray icon and choose refresh.

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: Stuckshutter (---.asm.bellsouth.net)
Date: March 07, 2010 09:19PM

I too am having problems with installing and getting it to work on Win7 x 64. Install went fine but I have the message that "PHP CLI has stopped working" which appears as soon as I launch WampServer. I tried the fix above but still get this error:
Problem signature:
Problem Event Name: APPCRASH
Application Name: php-win.exe
Application Version: 5.3.0.0
Application Timestamp: 4a492334
Fault Module Name: php5ts.dll
Fault Module Version: 5.3.0.0

WAMP install works great on my xp laptop but it's not getting there on Win7 yet. Anyone have a suggestion?

Thanks.
Stuck

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: chrisjh (---.14.193-77.rev.gaoland.net)
Date: March 08, 2010 06:46PM

Hi c2dan,
I can't run wampserver because of the invalid tag error. However I edited the php.ini file in the apache directory (I just removed the comments at the end of the 2 lines) and could then start the server. I then had to change the apache version to one that was compatible with php5.3.0.
All works now, thanks for your help.
Chris

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: March 08, 2010 07:43PM

Any version of Apache is compatible with 5.3.0

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: edrobinson (---.com)
Date: March 09, 2010 06:39PM

I am having the same problem. I have deleted every ocurrance of the comment.

This shows up in the wampserver.ini:

Type: item; Caption: "php_oci8.dll
"; Action: multi; Actions: php_ext_php_oci8.dll

and this:

[php_ext_php_oci8.dll
]

No matter what I do they are there whenever I try to start things.

I have deleted them and cursed them...

Wouldn't be so bad if I used any Oracle producte.... smiling smiley



Edited 1 time(s). Last edit at 03/09/2010 06:40PM by edrobinson.

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: edrobinson (---.com)
Date: March 09, 2010 07:02PM

Well, I think I fixed it...

Grep for oci8.dll and remove the trailing space wherever it occurs. Seems it was causing the lines to break when the ini file was regenerated.

Hope this helps.

Ed

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: Stuckshutter (---.asm.bellsouth.net)
Date: March 13, 2010 06:45PM

Thank you for trying to help, I appreciate that.

Removed all traces of the code you provided in all of the php.ini files. Still wont run anything, crashes with this error:

Problem signature:
Problem Event Name: APPCRASH
Application Name: php-win.exe
Application Version: 5.3.0.0
Application Timestamp: 4a492334
Fault Module Name: php5ts.dll
Fault Module Version: 5.3.0.0
Fault Module Timestamp: 4a4922e7
Exception Code: c0000005
Exception Offset: 000e4e3d
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033

Anyone have a fix for the problems with Win7 x 64 for those of us who seem to have problems with the install?

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: Stuckshutter (---.asm.bellsouth.net)
Date: March 13, 2010 06:46PM

Sad to say, this didn't work. Just posted the reply for the author. Crashed. Can't run a thing.... get the following:

Problem signature:
Problem Event Name: APPCRASH
Application Name: php-win.exe
Application Version: 5.3.0.0
Application Timestamp: 4a492334
Fault Module Name: php5ts.dll
Fault Module Version: 5.3.0.0
Fault Module Timestamp: 4a4922e7
Exception Code: c0000005
Exception Offset: 000e4e3d
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033

Options: ReplyQuote
Re: Bug in PHP 5.3.0 with Wampserver 2.0...
Posted by: Teja (117.241.3.---)
Date: September 14, 2010 10:00AM

Thanks Ed, solved the problem for me - faced the same bug with PHP 5.3.1.

Solution: In the php.ini inside the PHP directory (C:\wamp\bin\php\php5.3.1\php.ini - NOT Apache), you will find these lines:
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client

Remove the trailing spaces and text after dll. So the lines will look like:
;extension=php_oci8.dll
;extension=php_oci8_11g.dll

Now when you start WAMP and switch to PHP 5.3.1, this "php.ini" is copied into Apache folder (C:\wamp\bin\apache\apache2.x.x\bin\php.ini) and also used to modify the 'wampmanager.ini' file.

If you already tried to switch to PHP 5.3.1 without making the changes to the php.ini, then you will keep getting a syntax error and WAMP server won't start because the trailing spaces and text are causing the errors. In such a case, do the following:

1. Go to Windows services and stop WampApache and WampMysqld services, if running.
2. Change the php.ini files in both the PHP and Apache folders.
3. Open the 'wampmanager.ini' in a good text editor and for all occurances
(a) Replace "oci8.dll ; Use with Oracle 10gR2 Instant Client" with "oci8.dll"
(b) Replace "oci8_11g.dll ; Use with Oracle 11g Instant Client" with "oci8_11g.dll"
4. If necessary, adjust line formatting & syntax to match the lines above and below
5. Start WampServer as usual and it should work.

Cheers.



edrobinson Wrote:
-------------------------------------------------------
> Well, I think I fixed it...
>
> Grep for oci8.dll and remove the trailing space
> wherever it occurs. Seems it was causing the lines
> to break when the ini file was regenerated.
>
> Hope this helps.
>
> Ed

Options: ReplyQuote


Sorry, only registered users may post in this forum.