Page 1 of 2

Upgrade php 5.3.1 to 5.3.2

PostPosted: 09. March 2010 13:41
by ArVie
I want to upgrade my MediaWiki to version 1.15.2, but it does not support the (buggy) php version 5.3.1. And that is exactly the version running on my XAMPP installation. ;-)

Is there a (simple) upgrade patch from php version 5.3.1 to version 5.3.2?

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 09:41
by Omega
I have the same problem here.

I was planning to start using MediaWiki.
How can it be fixed?

PHP 5.3.1 is not compatible with MediaWiki due to a bug involving reference parameters to __call. Upgrade to PHP 5.3.2 or higher, or downgrade to PHP 5.3.0 to fix this. ABORTING (see http://bugs.php.net/bug.php?id=50394 for details)

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 09:50
by STB
I also have the same problem if there's a solution that would be great. :)

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 15:13
by addACUMEN
Have you tried downloading 5.3.2 from php.net?

I have previously swapped a later version of PHP for an earlier buggy one simply by replacement with suitable safeguards.

HTH

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 15:28
by ArVie
Yes, I did.

But, when I replace the PHP folder with the new files, Apache won't start anymore. A lo tof errors pop-up in the kind of php_etcetera.dll not found. Althoug my php/ini is NOT replaced.

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 15:55
by addACUMEN
Did you download the binaries from http://windows.php.net/download/?

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 10. March 2010 17:18
by Tyrael
Ok, so this is how I done it:
download http://windows.php.net/downloads/releas ... C6-x86.zip
unpack it to the xampp/php directory
copy(and overwrite) the *.dll from xampp/php to xampp/apache/bin
overwrite xampp/php/dev/lib/php5ts.lib with xampp/php/dev/php5ts.lib
comment out the following extensions from your php.ini:
php_mcrypt.dll // already loaded
php_pdo.dll // already loaded
php_zip.dll // some funny error about pcre_exec missing in php5ts.dll
php_pdo_* not working, but I dont need that atm.
everything else works fine for me, after this steps.

Tyrael

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 12. March 2010 22:24
by Omega
Tyrael wrote:Ok, so this is how I done it:
  • download http://windows.php.net/downloads/releas ... C6-x86.zip
  • unpack it to the xampp/php directory
  • copy(and overwrite) the *.dll from xampp/php to xampp/apache/bin
  • overwrite xampp/php/dev/lib/php5ts.lib with xampp/php/dev/php5ts.lib
  • comment out the following extensions from your php.ini:
    • php_mcrypt.dll // already loaded
    • php_pdo.dll // already loaded
    • php_zip.dll // some funny error about pcre_exec missing in php5ts.dll
    • php_pdo_* not working, but I dont need that atm.
everything else works fine for me, after this steps.
Tyrael


it indeed works for my.

thanks.

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 15. March 2010 01:56
by xpd
It seemed to work for me on one machine, but when I tried on another, Apache refuses to start - looking at SCM it says "Starting" but never does :(

Anyone else come across this ?

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 16. March 2010 09:21
by Omega
what dos it say if you start "\xampp\apache_start.bat"?

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 24. March 2010 12:26
by Cone
Tyrael wrote:Ok, so this is how I done it:
download http://windows.php.net/downloads/releas ... C6-x86.zip
unpack it to the xampp/php directory
copy(and overwrite) the *.dll from xampp/php to xampp/apache/bin
overwrite xampp/php/dev/lib/php5ts.lib with xampp/php/dev/php5ts.lib
comment out the following extensions from your php.ini:
php_mcrypt.dll // already loaded
php_pdo.dll // already loaded
php_zip.dll // some funny error about pcre_exec missing in php5ts.dll
php_pdo_* not working, but I dont need that atm.
everything else works fine for me, after this steps.


I followed this steps, but still have Version 5.3.1 shown in phpinfo().
What went wrong?

Edit: On localhost it's php 5.3.2. That's confusing me...............

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 26. March 2010 12:34
by reizerg
Cone wrote:
Tyrael wrote:Ok, so this is how I done it:
download http://windows.php.net/downloads/releas ... C6-x86.zip
unpack it to the xampp/php directory
copy(and overwrite) the *.dll from xampp/php to xampp/apache/bin
overwrite xampp/php/dev/lib/php5ts.lib with xampp/php/dev/php5ts.lib
comment out the following extensions from your php.ini:
php_mcrypt.dll // already loaded
php_pdo.dll // already loaded
php_zip.dll // some funny error about pcre_exec missing in php5ts.dll
php_pdo_* not working, but I dont need that atm.
everything else works fine for me, after this steps.


I followed this steps, but still have Version 5.3.1 shown in phpinfo().
What went wrong?

Edit: On localhost it's php 5.3.2. That's confusing me...............

I have the same problem! I followed these steps as well, but the Version of PHP is 5.3.1 instead of 5.3.2.

One step I could not do: "overwrite xampp/php/dev/lib/php5ts.lib with xampp/php/dev/php5ts.lib"
I did not find any php5ts.lib in "xampp/php/dev/php5ts.lib" folder.
My configuration:
# Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
# MySQL client version: 5.1.41

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 30. March 2010 20:08
by b_w_johan
Followed all steps as tyreal explained.
Doesn't work :'( the control panel shows:

busy...
service started
busy...
service started

but the button doesn't come up green like the mysql one does, and it did before i updated.

if i try to start manually i get this:

D:\xampp>xampp_cli.exe start apache
Starting "apache"...
"apache" is not started.

it freezes a minute on Starting "apache" ... then shows it doesn't start.

if i do WHILE this thingy starts apache the same but restart it shows the following:

D:\xampp>xampp_cli.exe restart apache
Restarting "apache"...
Can't find process "D:\xampp\apache\bin\httpd.exe".


Any solution to the fact that httpd.exe doesn't start?

-- update --

tried to start httpd manually as well, error on line 126 (or something)
LoadModule ssl_module modules/mod_ssl.so << this line can't remember the number and don't wanna count the lines in the file ;)

after that i tried to restart it, now 2 errors; 1 on line 460
Include "conf/extra/httpd-xampp.conf"

and some other i can't remember ... So any suggestions how its possible httpd.exe doesn't work anymore after updating php ?

--update 2 --



after carefully re-reading the post, i noticed i took c9? and youre talking about C6

Is it that what causes the problem? i've put everything back as it used to be, hoping someone here can help me out. Thanks in advance,

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 31. March 2010 18:08
by b_w_johan
So did anyone find a fix, or should i retry with the C6 version of php 5.3.2 ?

Re: Upgrade php 5.3.1 to 5.3.2

PostPosted: 07. April 2010 01:18
by rk
Yes, it works using VC6.

If Tyrael's instructions still don't work, also copy php5apache2_2.dll and php5apache2_2_filter.dll from /xampp/php/ to /xampp/apache/modules/