By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,768 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,768 IT Pros & Developers. It's quick & easy.

PHP 5?

P: n/a
Hi, I am finally thinking of upgrading code from 4.xx to 5.xxx.

I think I am a bit ’dated’ with my question, but here we go.

What are the pitfalls I should look for in this upgrade. Does
everything run just fine- at least code you have tried? Can you share
some experiences on this.

steve

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-default-ftopict221422.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=761740
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
PHP 5 is at least ten times better than PHP 4. It has a lot of extra
features that make it more like a true object-oriented language. A
must-have. It is fully forward-compatible with previous versions, but not
completely backwards-compatible. This is mainly as a result of the new and
much improved object model. Some of the things that work in PHP 5 but not
PHP < 5 are:

- private/protected member variables/functions in classes
- variable size arrays in classes
- default values for function parameters passed by reference
- various functions, like stripos, str_split, etc. go here for an
_incomplete_ list: http://www.zend.com/php5/whats-new.php

Check out http://www.zend.com/php5/index.php for more.

ECRIA
http://www.ecria.com
Jul 17 '05 #2

P: n/a
Well, for what it's worth, I began programming in PHP two years ago
and, at this time, I read up to date manuals and documentation so that
I didn't use deprecated ways of doing things.

I've got one or two sites that are getting fairly large and made the
switch two months ago. It went OK, not a single problem.

It looks like some scripts that have some legacy instructions in them
can be buggy. But my own PHP 4.x scripts went smoothly to PHP 5. Give
it a try on another server if you can.

JFLac

Jul 17 '05 #3

P: n/a
"Peter's Public Mail Buffe" wrote:
PHP 5 is at least ten times better than PHP 4. It has a lot of
extra
features that make it more like a true object-oriented
language. A
must-have. It is fully forward-compatible with previous
versions, but not
completely backwards-compatible. This is mainly as a result of
the new and
much improved object model. Some of the things that work in
PHP 5 but not
PHP < 5 are:

- private/protected member variables/functions in classes
- variable size arrays in classes
- default values for function parameters passed by reference
- various functions, like stripos, str_split, etc. go here for
an
_incomplete_ list: http://www.zend.com/php5/whats-new.php

Check out http://www.zend.com/php5/index.php for more.

ECRIA
http://www.ecria.com


Thank you Jean and Peter. I will have different version environments
for a while, so it is heartening to think that they could all be
running without code modifications.

Peter, impressive list of features from Zend site.

I will just run my old code on a test server and see how it goes.

steve

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-default-ftopict221422.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=761812

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 17 '05 #4

P: n/a
When in doubt, read the PHP manual:

http://php.net/migration5
http://php.net/oop5

Jul 17 '05 #5

P: n/a
On Wed, 04 May 2005 19:04:40 -0500, steve wrote:
What are the pitfalls I should look for in this upgrade. Does
everything run just fine- at least code you have tried? Can you share
some experiences on this.


If you were using OCI driver, it no longer works with PHP5.
Re-writing this was a pain.

--
Egoist: A person of low taste, more interested in themselves than in me.

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.