Will Apple update PHP to version 5.3.2 in…
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Current bundled version is PHP 5.3 which is buggy and insecure.
I would like to avoid having to compile my own version.
There is an update around the corner, but I can't find this useful information.
Can any person that have access to the current beta let me know if Apple updated PHP to 5.3.1 or 5.3.2
Thanks.
15 replies
Sign in or join Beachball Help to reply.
- 0
keeperofthecheese ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
10.6.3 contains php-5.3.1.
- 0
Fustbariclation ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
So, when will Apple upgrade to 5.3.2?
I have this notice:
Warning: PHP 5.3.1 has a bug in it and is not supported by MediaWiki. You should use PHP 5.3.0 or PHP 5.3.2 instead.
The bug is:
[2009-12-06 23:40 UTC] tstarling at wikimedia dot org
Description:
------------
This is a regression in the PHP 5.3.1 release. When you call a __call() function with a reference parameter, it is silently converted to a value, by the time it reaches the second argument to __call().This breaks MediaWiki and has no obvious workaround.
Reproduce code:
---------------
function foo( &$x ) {}class Proxy {
function __call( $name, $args ) {
debug
zvaldump( $args );
call
user_funcarray( 'foo', $args );
}
}$arg = 1;
$args = array( &$arg );
$proxy = new Proxy;
call
user_funcarray( array( &$proxy, 'bar' ), $args );Expected result:
----------------
PHP 5.3.0 produces:array(1) refcount(4){
[0]=>
&long(1) refcount(5)
}Actual result:
--------------
array(1) refcount(4){
[0]=>
long(1) refcount(3)
}Warning: Parameter 1 to foo() expected to be a reference, value given in /home/tstarling/src/php/stuff/test-reference-call.php on line 8
- 0
pointed ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
It is now May... and still no patch to fix this problem!
I would also like to know when a patch from PHP 5.3.1 to PHP v5.3.2 will be forthcoming from apple updates so we can go back to running things like MediaWiki without manually downgrading or upgrading PHP to work correctly.
- 0
Matt Gilbert ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Is there a way to put php on an "ignore_update" list or something? I'm working on a Server that has a Drupal site that needs a pre-5.3 version of php to run properly. Updating Drupal would be a huge pain. I would like to simply prevent Apple Update from updating php.
- 0
Bytesmiths ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Oh man, this is killing me. It is seriously making me think about setting up some crappy Linux box and dumping my new Mac Mini Server.
I have been trying to download or build a workable PHP/MediaWiki combo for a week now. MacPorts seems to be broken with some library mismatch problems. (the well-known libiconv.2.dynlib issue) Simply building php 5.3.2 fails with similar problems. I've tried installing libiconv from MAMP and other sources. I have a lot invested in my current Apache setup and don't want to move it all to MAMP with no assurance it will even work then. I've done enough shooting in the dark.
Assuming
SOMEONE has been able to crack this nut, *I'm offering $50* to anyone who can supply me with a PHP that will work with MediaWiki 1.14 and later. - 0
bigtoe ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Instructions to compile PHP 5.3.2 on 10.6.3:
http://seancoates.com/php-53-on-snow-leopard If it works for you send Sean his $50...(Mostly) following this I got PHP 5.3.2 up and running today on a 10.6.3 server with the latest MySQL and MediaWiki. Not pretty, and not easy, but educational! A few hints:
- I skipped compiling a new Apache2, so the PHP configuration line had to reflect Apple's placement of things. Line 4 of step 7 for me turned out as:
./configure --prefix=/usr/local --with-xsl --with-gd --with-zlib-dir --enable-sockets --enable-exif --with-mcrypt --enable-soap --enable-embedded-mysqli --with-mysql --with-pdo-mysql --with-curl --with-libedit --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-openssl --with-iconv=/opt && make && make install
- Upgrading MediaWiki will still fail because using $ php in the command line still calls 5.3.1, use the full path of your new 5.3.2 cli, i.e. $ /usr/local/bin/php You could fix this with symlinks or naming, if you wanted.
- 0
bigtoe ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
BTW - this may or may not be completely hosed by future a system update - ymmv.
- 0
seancoates ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Yeah. Where's my $50? I take Paypal! (-;
S
- 0
Bytesmiths ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Love to send you $50, but it wasn't a slam-dunk.
I followed your instructions precisely until something broke. Then I had to go do "real work" and quit thinking about it.
This is not how I prefer to submit a problem report, and I apologize that I cannot be more specific at this time. In the next couple weeks, I'm hoping my "real work" schedule will calm down a bit, and I'll re-visit and let you know precisely what sort of problems I had.
I wish I could be more specific. I've done a fair bit of software development, and all I can tell you is that it didn't seem to be a simple fix at the time...
- 0
seancoates ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I was just kidding about the $50. (-:
If I can help, somehow, please let me know. The root of the problem, I think, is that Apple butchered iconv, and despite their published patch to PHP to "fix" this, I couldn't get their changes to take.
Without iconv is much easier.
S
- 0
Thomas Farlow ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
So it does not appear that PHP has been upgraded with the 10.6.4 update. Still stuck with buggy 5.3.1.
- 0
Bytesmiths ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Sheesh. You'd think that not being able to run what is perhaps the best-known, most-used open-source software on the planet would be enough to get Apple to act.
If I hadn't just wasted a grand on a Mac Mini Server, I'd be headed to a cheap PC clone and Linux right now...
- 0
keeperofthecheese ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thank you for your feedback.
- 0
coffeebucket ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I've just received my Mac mini server and am finding myself in the same boat: needing to install MediaWiki and having to get around the included PHP 5.3.1.
Just seeking some clarification on the PHP source build. Do the instructions above have the desired effect?
Also:
1) Would using the PHP packages from Fink and/or MacPorts be an option? If not, why not?
2) When Apple finally get around to officially releasing a newer version of PHP, what are the potential compatibility issues with a custom install going to be?Thanks in advance.
- 0
Bytesmiths ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I was unable to build from source, using MacPorts. It kept complaining about libiconv version issues.
Same goes for trying to build anything dealing with graphics, including GD and Image Magick.
I'm pretty disgusted with Apple at the moment.