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