PHP 5.4 Support

Any wishes or suggestions for MAMP?
Post here what functions you are still missing for MAMP.

Moderator: severin

slimandslam
Posts: 6
Joined: Tue 12. Jan 2010, 00:29

PHP 5.4 Support

Post by slimandslam » Thu 1. Mar 2012, 23:11

PHP 5.4 is out: http://php.net/releases/5_4_0.php

It would be nice if the next version of MAMP supported it so we could all get started
playing with the new features.

J

tdlm
Posts: 1
Joined: Fri 2. Mar 2012, 17:14

Re: PHP 5.4 Support

Post by tdlm » Fri 2. Mar 2012, 17:18

slimandslam wrote:PHP 5.4 is out: http://php.net/releases/5_4_0.php

It would be nice if the next version of MAMP supported it so we could all get started
playing with the new features.

J
Agreed. At least a way to make php 5.4 work with MAMP would be nice.

Handyman
Posts: 21
Joined: Tue 20. Jun 2006, 07:20
Contact:

Re: PHP 5.4 Support

Post by Handyman » Mon 5. Mar 2012, 21:09

Compiling instructions would be fantastic! That way would could compile different versions of software to work with MAMP if needed.
http://startrekguide.com Testing, support and mods for phpBB3 and future home of StarTrekGuide

cillyRabbit
Posts: 3
Joined: Mon 16. Jan 2012, 01:42

Re: PHP 5.4 Support

Post by cillyRabbit » Thu 8. Mar 2012, 02:38

I'm going to second this, or third it, or fourth it. 5.4 takes php to a new level. On that note, I wish there was a third party software like MAMP or AMPPS that would make installing the latest version of php easy, or prior versions for that matter. I do not have an efficient way of doing this locally at this point and it usually ends in me spending half my week debugging whatever I installed wrong :P Whoever makes that leap first get's my vote... and my donations :)

Handyman
Posts: 21
Joined: Tue 20. Jun 2006, 07:20
Contact:

Re: PHP 5.4 Support

Post by Handyman » Thu 8. Mar 2012, 05:04

cillyRabbit wrote:I'm going to second this, or third it, or fourth it. 5.4 takes php to a new level. On that note, I wish there was a third party software like MAMP or AMPPS that would make installing the latest version of php easy, or prior versions for that matter. I do not have an efficient way of doing this locally at this point and it usually ends in me spending half my week debugging whatever I installed wrong :P Whoever makes that leap first get's my vote... and my donations :)
I just asked AMPPS about that yesterday and they seemed extremely interested! They also promised me 5.4 in AMPPS is coming very soon, so we'll see which software gets updated first :)
http://startrekguide.com Testing, support and mods for phpBB3 and future home of StarTrekGuide

cillyRabbit
Posts: 3
Joined: Mon 16. Jan 2012, 01:42

Re: PHP 5.4 Support

Post by cillyRabbit » Thu 8. Mar 2012, 18:33

Handyman wrote: I just asked AMPPS about that yesterday and they seemed extremely interested! They also promised me 5.4 in AMPPS is coming very soon, so we'll see which software gets updated first :)
AWESOME! My money is on AMPPS but I love being proven wrong :)

saverio
Posts: 1
Joined: Thu 8. Mar 2012, 22:53

Re: PHP 5.4 Support

Post by saverio » Thu 8. Mar 2012, 22:56

Yes, PHP 5.4 support is ABSOLUTELY needed. It's a huge step forward for PHP in a lot of areas and given how big some of the changes are, testing is 100% needed!

TrevStuff
Posts: 1
Joined: Sat 10. Mar 2012, 20:07

Re: PHP 5.4 Support

Post by TrevStuff » Sat 10. Mar 2012, 20:24

It looks like BitNami has updated their Mamp stack to include php 5.4.

Check this out...
http://blog.bitnami.org/2012/03/updated ... tnami.html

I am excited to get started with the new features in php 5.4.

Philipp Börckel
Site Admin
Posts: 6
Joined: Fri 18. Mar 2011, 10:17

Re: PHP 5.4 Support

Post by Philipp Börckel » Mon 12. Mar 2012, 12:54

The upcoming version of MAMP and MAMP Pro will Support PHP 5.4

nrogers64
Posts: 2
Joined: Mon 27. Feb 2012, 18:18

Re: PHP 5.4 Support

Post by nrogers64 » Mon 12. Mar 2012, 15:34

Philipp Börckel wrote:The upcoming version of MAMP and MAMP Pro will Support PHP 5.4
Awesome! Is there a rough estimate as to when the upcoming version might be released? Also, is there a plan to support Apache 2.4 any time soon?

cillyRabbit
Posts: 3
Joined: Mon 16. Jan 2012, 01:42

Re: PHP 5.4 Support

Post by cillyRabbit » Tue 13. Mar 2012, 03:04

TrevStuff wrote:It looks like BitNami has updated their Mamp stack to include php 5.4.

Check this out...
http://blog.bitnami.org/2012/03/updated ... tnami.html

I am excited to get started with the new features in php 5.4.
Never even realized this was an option. I traditionally have used Marc Liyanage's stuff but have recently got interested in MAMP. On that note is BitNami always this fast? I'm a bit surprised that they came out with a MAMP stack before MAMP came out with a MAMP version.

deth4uall
Posts: 4
Joined: Mon 19. Mar 2012, 14:12

Re: PHP 5.4 Support

Post by deth4uall » Tue 20. Mar 2012, 15:25

If we could get the admins of MAMP to tell us generally what they did to compile the Open Source side of the MAMP, I could easily provide new versions of PHP, etc. However I have only seen resistance or ignorance of my requests. I know I need to have a folder named /MAMP_src but other than that I am stumped because I haven't found out the rest or had time to. :(

Additionally, I like how those others have some features that MAMP has but so far MAMP is the easiest to use, and I would like to see more of it available soon! :)

mmjaeger
Posts: 13
Joined: Wed 26. Mar 2008, 07:51

Re: PHP 5.4 Support

Post by mmjaeger » Tue 20. Mar 2012, 18:08

as the MAMP communication doesn't seem to improve I have been looking for some alternatives like: http://www.eosgarden.com/en/ (Webstart) - I was wondering whether anybody is familiar with it - it looks very promising - Let me know what you think if you give it a try.

deth4uall
Posts: 4
Joined: Mon 19. Mar 2012, 14:12

Re: PHP 5.4 Support

Post by deth4uall » Wed 21. Mar 2012, 21:42

mmjaeger wrote:as the MAMP communication doesn't seem to improve I have been looking for some alternatives like: http://www.eosgarden.com/en/ (Webstart) - I was wondering whether anybody is familiar with it - it looks very promising - Let me know what you think if you give it a try.
Wow, that looks pretty impressive. It has more options too! :P

arzynik
Posts: 1
Joined: Tue 27. Mar 2012, 18:10

Re: PHP 5.4 Support

Post by arzynik » Tue 27. Mar 2012, 18:35

i was able to successfully compile php 5.4 for use with the built in apache for osx, as well as the cli, but somehow am unable to get it to work with MAMP. im not sure if theres something special i need to do other than copy my libphp5.so over.

heres kinda how i did it

download the mamp components
http://sourceforge.net/projects/mamp/fi ... p/download


install xslt
go into mamp components
extract it
cd into it
./configure
make

install mcrypt
go into mamp components
extract it
cd into it
./configure
make

install imap
go into mamp components
extract it
cd imap-2007e/
make osx EXTRACFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp"
sudo mkdir /usr/local/include
sudo cp c-client/*.h /usr/local/include/
sudo mkdir /usr/local/lib
sudo cp c-client/*.c /usr/local/lib/
sudo cp c-client/c-client.a /usr/local/lib/libc-client.a


you may find that you need to install more libs than i did, as i have xcode installed which installs some, including libpng.

configure
here is my configure

Code: Select all

./configure \
--with-mysql \
--with-apxs2=/usr/sbin/apxs \
--with-gd \
--with-jpeg-dir=/Applications/MAMP/Library \
--with-png-dir=/usr/X11 \
--with-zlib \
--with-freetype-dir=/usr/X11 \
--prefix=/Applications/MAMP/bin/php/php5.4 \
--exec-prefix=/Applications/MAMP/bin/php/php5.4 \
--sysconfdir=/Applications/MAMP/bin/php/php5.4/conf \
--with-config-file-path=/Applications/MAMP/bin/php/php5.4/conf \
--with-config-file-scan-dir=/Applications/MAMP/bin/php/php5.4/conf/php.d \
--enable-bcmath \
--enable-ftp \
--enable-gd-native-ttf \
--with-bz2=/usr \
--with-ldap \
--with-mysqli \
--with-t1lib=/Applications/MAMP/Library/lib \
--enable-mbstring=all \
--with-curl=/Applications/MAMP/Library \
--enable-sockets \
--enable-bcmath \
--with-openssl \
--with-imap=/Applications/MAMP/Library/lib/imap-2007e \
--with-imap-ssl \
--with-kerberos \
--enable-calendar \
--with-pgsql=shared,/Applications/MAMP/Library/pg \
--enable-exif \
--with-libxml-dir=/Applications/MAMP/Library \
--with-gettext=shared,/Applications/MAMP/Library \
--with-xsl=/Users/me/Downloads/MAMP_components_2.0.2/libxslt-1.1.26 \
--with-pdo-mysql \
--with-pdo-pgsql=/Applications/MAMP/Library/pg \
--with-mcrypt=/Users/me/Downloads/MAMP_components_2.0.2/libmcrypt-2.5.8/lib \
--enable-zip \
--without-iconv

make and install
make
sudo make install
this will show you the paths of where it is going

at this point php 5.4 is working on the built in apache

attempting to get to work with mamp
for some reason it keeps trying to load up some php modules complaining about mismatched api versions. i honestly could not figure out where it was loading these from.

with display startup errors on i was getting a fatal error this is because allow_call_time_pass_reference is now disabled in php 5.4

the next error i got was this
These options need to match in Unknown on line 0

i read something about this being thread safety issues, but honestly once i realized i could just copy over my mamp httpd.conf to the default apache, i gave up.


here are some sites that helped me on the way
http://articles.serenity.de/compiling_php_with_oracle/
http://www.activecollab.com/forums/topic/5844/
http://www.davidgolding.net/cakephp/upg ... -mamp.html


hopefully someone else will have more luck!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests