PDA

View Full Version : PHP asort() bug?


phppete
02-15-2004, 06:43 AM
Is there a PHP bug in this release where asort() failes to sort when used on a property of a class?

For some reason asort() has no affect on a class I am writing but is working as would be expected with PHP 4.3.3 on my local machine.

Thanks

Pete

Terra
02-15-2004, 10:02 AM
Looking at the complete ChangeLog, and also the bug tracking system, I can find no mention of any problems related to asort()...

Do you have any idea when PHP 4.3.5 will be hitting the street? It is slated for our next upgrade cycle... So far the RC2 release is looking pretty good for us...

--
Terra
--did you ever wonder why they called it OOP(s)--
FutureQuest

hobbes
02-15-2004, 10:09 AM
Last I heard 4.3.5 was slated for release last week; however with the originally unplanned RC2 release, it has probably been pushed off ~4 weeks.

-- 4.3.5 the last of the 4 series --

phppete
02-15-2004, 10:17 AM
Thanks for the reply, I'll have to investigate further before I can be sure its a bug. It could be an OOPs! problem caused by me but why it works on my PHP 4.3.3 and not here I don't know. I ran a basic test on asort() and that worked fine so its obviously an OOP thing.

Not sure when PHP 4.3.5 will be ready for prime time, I would imagine it is soon, not that 'soon' means much..lol.

On another note I recently bought myself an iBook with Mac OS X. I just downloaded PHP5 beta 4. As you will probably be aware Mac OS X is based on Free BSD so its time to dive into the terminal and compile PHP.

If you happen to have any 'Compiling PHP for Dummies' type links I would be most grateful. My level of Unix knowledge is rather appalling but somehow through the blood, sweat and tears I think that is about to change. %)

Pete

phppete
02-15-2004, 10:20 AM
Originally posted by hobbes:

-- 4.3.5 the last of the 4 series --

... and then its a big scramble to dig out your Java books and learn the new OOP model of PHP5.

http://www.phpvolcano.com/articles/php5/

:P

Terra
02-15-2004, 10:23 AM
I learned to compile PHP through reading the official docs, and also through a bit of trial-n-error during the tweaking phase...

I would recommend looking at the LAMP project, since it is supposed to be a bundled solution for people in your situation...

--
Terra
-- http://www.catb.org/~esr/writings/let-java-go.html --
FutureQuest