View Single Post

  #4 (permalink)  
Old 07-12-2003
Agelmar
 
Posts: n/a
Default Re: Upgrade to PHP5 (beta)

Louis-Philippe Huberdeau wrote:

> MySQL problem should be solved by then, and the mysqli lib is worth
> the
> move.


mysqli is interesting, but requires MySQL >= 4.1.x. Most servers that I've
worked on lately are running 3.23.57 - I think the jump to 4 is a big change
for many sysadmins, and I don't forsee mysql4 taking over on most
development systems until at least 2004. Of those systems that I have worked
on that *are* running MySQL 4.x, they have been almost exclusively MySQL
4.0.x, usually 4.0.11. Currently, the production release is 4.0.13, an 4.1.0
is listed as alpha. I have yet to see a production server that I've been
hired to develop for run 4.1.x. So while I am a bit intrigued by mysqli, I
do not hold out a hope that it will solve the problems of removing the
bundled mysql lib. Hopefully they work something out, but I don't think
mysqli is the answer.

As for SQLite - this is an interesting development, however given that it's
currently primarily PHP 5.0.0 only, I don't forsee implementing it in my
work any time soon, especially given that it does not support ALTER TABLE. I
use ALTER TABLE frequently - for example, I just did a program for a client
that, among other things, tracked objectives and whether a certain item met
certain objectives. I have one table that contains the itemID and then a
field for each objective - when I the client adds objectives, this table is
ALTERed. So unless SQLite implements ALTER TABLE, I think I would only use
it in a very limited fashion.

>> // Ian Fette
>> // Proponent comp.lang.php
>>
>>

>
> The only thing that will really break the scripts is if your script
> required the implicit object copy. It's quite easy to fix using
> __clone() tought.
>
> Other than the way objects are handled, there are not that many
> differences between PHP4 and 5, even if that change makes an entire
> new language.


I seem to recall that they were proposing eliminating indexing into a string
via $somestring[$index], going for instead $somestring{$index} or something
of that nature. Do you recall if that was implemented?

// Ian


Reply With Quote