PHP5
- Started
- Last post
- 8 Responses
- atze187
yeah, i've been testing this for some hours now, and all i can say is WOW.
objects are referenced now and no longer copied with $a=$ab; and the whole zend language enhancements are amazing.
the speed improvement is not as incredible as announced, but php never really had big speed problems, so the update is just cool.
- unfittoprint0
I'll have a try this afternoon...
btw, atze, what do you mean by 'objects are referenced now and no longer copied with $a=$ab'? Didn't this happen before in v4.3?
- atze1870
i didn't say clearly what i meant:
$a->object=$ab did create a copy of $ab in $a->object.
to reference $ab you had to do $ab->object=&$ab; which - and there can be no different opinion on that - is damn annoying.
- enobrev0
all the new class control is my biggest interest in the new verison...
private, protected and public methods methods, constructors and deconstructors, and a whole bunch of shit that i don't quite understand just yet. At the least they give the basics required to make well built classes to bring from app to app.
the XML overhaul seems interesting as well...
My primary concern is that mysql is no longer bundled. What exactly does this mean?
- unfittoprint0
ah, got it atze....
'mysql is no longer bundled'!?
*faints.....
- chl0
"MySQL is no longer bundled" means that the MySQL client library is no longer part of the PHP source code. This is because MySQL changed their licenses so that everything is GPL, and this conflicts with the PHP license.
Now, if you already have MySQL installed, it will still work just fine. PHP will build against the client you have installed, which is probably what was happening before anyway.
AFAIKT, this is not as big a deal as people are making it out to be.
- enobrev0
i didn't expect it to be too big a deal as i would have figured the php boards would have been going nuts on the subject.
i just wasn't quite sure what it meant. So basically, when you compile php, you'll probably have to tell it where to find your mysql build now, right?
- chl0
That's correct, enobrev. Before, even if you didn't have MySQL installed at all, PHP would still build with the ability to connect to a MySQL server somewhere. That client MySQL code was just a part of PHP.
Now it's not anymore. However, the client code is still part of any MySQL installation. So when you build PHP you just tell it where your MySQL installation is and PHP will use the client code found there.
- enobrev0
thanks chl..
found this today regarding setting up php5b1 w/ mysql