I tried doing it, but didn't get anywhere past:
Code:
===> Setting user-specified options for php5-5.3.0 and dependencies
===> Patching for php5-5.3.0
===> Applying FreeBSD patches for php5-5.3.0
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to TSRM/threads.m4.rej
=> Patch patch-TSRM_threads.m4 failed to apply cleanly.
*** Error code 1
Stop in /usr/ports/lang/php5.3.0.
*** Error code 1
Stop in /usr/ports/lang/php5.3.0.
Basically there is no suhosin patch for 5.3, and if I compile without that, I run into that ^.
So.. that in mind, any news on if this is going to be ported soon?
Made a little progress.. moved files/ to patches/ so they wouldn't be used... which is probably very bad.. So.. not patches, and no suhosin patch because it's not released yet... But nonetheless, php 5.3 is compiling.. if it works, i'll tar up the port directory or something.. I wouldn't call it stable or anything but I just felt like messing around to see if I could hack up a php 5.3 port.
Anyway it's still compiling, lets see what happens.
YES! It appears to have worked. I'll post this here, but it's really not official or anything (I'm a complete freebsd newbie, just tried this for fun)... However I have tested it across two installs and it worked both times..
BIG NOTE: This is not official. I just did this for the sake of doing it (and am new to BSD so it's probably bad)
grab
http://hexinary.net/dev/freebsd/ports/php5.3.0.tar.gz.
Untar it, and it will give you a php5.3.0 directory. Move this to /usr/ports/lang. (I'm not sure if location matters but.. this is where I put it)..
Then cd into it and compile as normal.. HOWEVER.. There is no suhosin patch for it, so make sure to not use that option.
After a bit it should work, I'm able to `php -v` and it says 5.3.0. I haven't tried this with a web server yet, but I assume it works.
Sorry for posting 4 times in a row (a mod can merge these if he/she so chooses)... However I want to note that php5-extensions installs php5.2.10 (probably as a dep of something else it's installing, because I can't find it in the Makefile anywhere).
So.. yeah I'll probably just wait for the official maintainer to release the port. Oh well