Re: Squirrelmail and PHP6
Paul Lesniewski <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
On 7/23/09, Steve Brown <[email protected]> wrote: > This has come up on IRC a few times in the last couple of days, and I > figured it should be mentioned here as well. > > PHP6 is making some major changes in terms of removing old > functionality that will have a big impact on Squirrelmail. Most of > the changes are being tagged as deprecated in the 5.3 series. Some > items have already been mentioned on the list, such as removing > session_unregister. This article contains a fairly complete list of > the changes: > > http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html > > The big changes that I've noticed are removing of ereg from a stock > PHP build and dropping support for the PHP4 object model. Ereg is > used pretty extensively in SM. There is a tracker item open to document that this needs to be done. > PHP4 objects are also used throughout > for message delivery, i18n/l10n, and templates in DEV. I don't know > what behavior 5.3 exhibits with a PHP4 object, but we know it will be > dropped in PHP6. I haven't looked into it much myself yet, but it looks to me like there is some confusion and shortage of accurate information about this. The article you pointed to as well as the PHP manual state that "var" will be (is) an alias for "public" for member variables. That means PHP4 member variable syntax will continue to work in PHP6. This article: http://www.linux-mag.com/id/7433/2/ claims that "var" won't work, but only by showing a code example, so I am inclined to think this article is actually wrong. Poor reporting. That article also implies that visibility qualifiers will be required when defining member functions, but I don't see mention of that anywhere else, including in the article you found. So I am currently lead to believe that the PHP4 object syntax WILL NOT break in PHP6. Too bad there's not somewhere with some *accurate*, definitive information about this. ------------------------------------------------------------------------------ ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel