Migration Appendice

php.internals

Nuno Lopes

22 years ago
Hi, Today I've finished writing the 'Migrating from PHP 4 to PHP 5' appendice. I would like you to review it to check if something is missing or incorrect. As the on-line version is outdated, use livedocs at: http://docs.php.net/en/migration5.html thanks, Nuno

Gabor Hojtsy

22 years ago
> Today I've finished writing the 'Migrating from PHP 4 to PHP 5' appendice. > I would like you to review it to check if something is missing or incorrect. > > As the on-line version is outdated, use livedocs at: > http://docs.php.net/en/migration5.html
Seems to be all right. Would be nice to link to places in the manual, where other new features are documented (SPL, HTML Tidy, SimpleXML, the new object model). Goba

Wez Furlong

22 years ago
I'll also do up some notes on COM when I return from the next conference (well, actually write some real docs, since what we have now it pretty useless). --Wez. ----- Original Message ----- From: "Gabor Hojtsy" <gabor@hojtsy.hu> To: "Nuno Lopes" <nlopess@php.net> Cc: "PHPdev" <internals@lists.php.net>; "PHPdoc" <phpdoc@lists.php.net> Sent: Monday, February 23, 2004 6:24 PM Subject: [PHP-DEV] Re: [PHP-DOC] Migration Appendice
> > Today I've finished writing the 'Migrating from PHP 4 to PHP 5'
appendice.
> > I would like you to review it to check if something is missing or
incorrect.

Marcus Börger

22 years ago
Hello Nuno, Paragraph: Classes must be declared before used is no longer true. For most cases this is allowed now. Other notes: ext/domxml is replaced by ext/dom which is w3c dom compliant. ext/tidy was added to the default distribution and its method names were changed to studlyCaps convention. ext/sqlite now supports an oo interface and throws exception instead of errors when that is used. regards marcus Monday, February 23, 2004, 6:22:57 PM, you wrote:
> Hi,
> Today I've finished writing the 'Migrating from PHP 4 to PHP 5' appendice. > I would like you to review it to check if something is missing or incorrect.
> As the on-line version is outdated, use livedocs at: > http://docs.php.net/en/migration5.html
> thanks, > Nuno
-- Best regards, Marcus mailto:helly@php.net

Gabor Hojtsy

22 years ago
> Paragraph: Classes must be declared before used > is no longer true. For most cases this is allowed now.
What are those cases when this will be a problem? Having "most cases" in the documentation without an explanation would be bad practice IMHO... Goba

Marcus Börger

22 years ago
Hello Gabor, Monday, February 23, 2004, 7:49:01 PM, you wrote:
>> Paragraph: Classes must be declared before used >> is no longer true. For most cases this is allowed now.
> What are those cases when this will be a problem? Having "most cases" in > the documentation without an explanation would be bad practice IMHO...
IIRC then only standard classes without interfaces work.
-- Best regards, Marcus mailto:helly@php.net

Marcus Börger

22 years ago
Hello Marcus, Monday, February 23, 2004, 6:42:06 PM, you wrote:
> Hello Nuno,
> Paragraph: Classes must be declared before used > is no longer true. For most cases this is allowed now.
> Other notes: ext/domxml is replaced by ext/dom which is w3c dom > compliant. ext/tidy was added to the default distribution and its > method names were changed to studlyCaps convention.
> ext/sqlite now supports an oo interface and throws exception instead > of errors when that is used.
Further more ext/mysql does no longer include the lib I saw you also mention what is new: ext/mysqli, ext/spl and ext/simplexml were added.
> regards > marcus
> Monday, February 23, 2004, 6:22:57 PM, you wrote:
>> Hi,
>> Today I've finished writing the 'Migrating from PHP 4 to PHP 5' appendice. >> I would like you to review it to check if something is missing or incorrect.
>> As the on-line version is outdated, use livedocs at: >> http://docs.php.net/en/migration5.html
>> thanks, >> Nuno
> -- > Best regards, > Marcus mailto:helly@php.net
-- Best regards, Marcus mailto:helly@php.net

Derick Rethans

22 years ago
On Mon, 23 Feb 2004, Nuno Lopes wrote:
> Today I've finished writing the 'Migrating from PHP 4 to PHP 5' appendice. > I would like you to review it to check if something is missing or incorrect. > > As the on-line version is outdated, use livedocs at: > http://docs.php.net/en/migration5.html
I miss E_STRICT in here, and for what it is meant... Derick

Stephane Drouard

22 years ago
As this document refers to zend-engine-2.php, this latter should be updated. Here are some remarks: Private and Protected Members * reverse $Bar and $Foo strings * instead of "should/shouldn't print" -> OK or error Interfaces * may choose another name than the polemical "Throwable" one ;-) Class Type Hints / final * "Properties cannot be final" ? Object Cloning * cloning completly changed Exceptions * "Note that there is support for "catch all" and for the "finally" clause" -> not implemented * 1st example must extend Exception and comment below must be updated accordingly __autoload() * should write "include" rather than "include_once" which may disturb comprehension Stephane

Andi Gutmans

22 years ago
At 18:42 23/02/2004 +0100, Marcus Boerger wrote:
>Hello Nuno, > >Paragraph: Classes must be declared before used >is no longer true. For most cases this is allowed now.
To be accurate, we solved the BC issue but for people who want to use the PHP 5 features (such as implementing interfaces), they will have to declare the class before using it.
>Other notes: ext/domxml is replaced by ext/dom which is w3c dom >compliant. ext/tidy was added to the default distribution and its >method names were changed to studlyCaps convention. > >ext/sqlite now supports an oo interface and throws exception instead >of errors when that is used.
Andi