473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

PHP 5 or PHP 4 compatible codes

Kinda OT. I haven't yet moved to PHP5. But, interested to know how
many of you _really_ started using it or moved? Are you doing any
compatible tweaks specifically for PHP 5 (forward compatible) or PHP 4
(backward compatible)?

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #1
8 2309
R. Rajesh Jeba Anbiah wrote:
Kinda OT. I haven't yet moved to PHP5. But, interested to know how
many of you _really_ started using it or moved? Are you doing any
compatible tweaks specifically for PHP 5 (forward compatible) or PHP 4
(backward compatible)?


Basically, if you code for PHP4, it will work in PHP5. However, if you wish
to take advantage of the full PHP5 abilities, scrap backward compatibility.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 17 '05 #2
"Berislav Lopac" <be************@dimedia.hr> wrote in message news:<cd**********@ls219.htnet.hr>...
R. Rajesh Jeba Anbiah wrote:
Kinda OT. I haven't yet moved to PHP5. But, interested to know how
many of you _really_ started using it or moved? Are you doing any
compatible tweaks specifically for PHP 5 (forward compatible) or PHP 4
(backward compatible)?


Basically, if you code for PHP4, it will work in PHP5. However, if you wish
to take advantage of the full PHP5 abilities, scrap backward compatibility.


So, are you writing codes with any compatibility care?

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3
You should consider compatibility if you distribute your software as very
few web servers are migrated to PHP5, which is still not recommended for
production server at this stage. If you own your own server, I dont see any
need to do so.

Savut
http://www.savut.com

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om...
"Berislav Lopac" <be************@dimedia.hr> wrote in message
news:<cd**********@ls219.htnet.hr>...
R. Rajesh Jeba Anbiah wrote:
> Kinda OT. I haven't yet moved to PHP5. But, interested to know how
> many of you _really_ started using it or moved? Are you doing any
> compatible tweaks specifically for PHP 5 (forward compatible) or PHP 4
> (backward compatible)?


Basically, if you code for PHP4, it will work in PHP5. However, if you
wish
to take advantage of the full PHP5 abilities, scrap backward
compatibility.


So, are you writing codes with any compatibility care?

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com


Jul 17 '05 #4
Savut wrote:
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om...
"Berislav Lopac" <be************@dimedia.hr> wrote in message
news:<cd**********@ls219.htnet.hr>...
R. Rajesh Jeba Anbiah wrote:
Kinda OT. I haven't yet moved to PHP5. But, interested to know how
many of you _really_ started using it or moved? Are you doing any
compatible tweaks specifically for PHP 5 (forward compatible) or
PHP 4 (backward compatible)?

Basically, if you code for PHP4, it will work in PHP5. However, if
you wish
to take advantage of the full PHP5 abilities, scrap backward
compatibility.


So, are you writing codes with any compatibility care?

--
Just another PHP saint |

Email: rrjanbiah-at-Y!com


You should consider compatibility if you distribute your software as
very few web servers are migrated to PHP5, which is still not
recommended for production server at this stage. If you own your own
server, I dont see any need to do so.

Savut
http://www.savut.com


This is a good advice. For the time being, use PHP5 only when your
application is to be run on a server that you have complete control over,
and even then only for non-critical applications. I have PHP5 on my own dev
computer both at home and ad work, and am testing its details and features,
but all our applications are still developed in PHP4. But when the Great
Switch To PHP5 (TM) comes, I'll have a head start.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 17 '05 #5
On 18 Jul 2004 23:23:27 -0700, ng**********@rediffmail.com (R. Rajesh Jeba
Anbiah) wrote:
Kinda OT. I haven't yet moved to PHP5. But, interested to know how
many of you _really_ started using it or moved? Are you doing any
compatible tweaks specifically for PHP 5 (forward compatible) or PHP 4
(backward compatible)?


I've only done very brief testing (an hour or two) on the 5.0.0 release, and
got Mysterious Crashes when using Oracle. Probably just teething troubles, but
it's put me off for the moment until I get a bit more time to trace it back.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #6
Berislav Lopac wrote:
Basically, if you code for PHP4, it will work in PHP5. However, if you
wish to take advantage of the full PHP5 abilities, scrap backward
compatibility.


One of the things you need to be careful of is not to depend on passing by
value. In PHP4 if you pass an object and modify it, a copy is modified. If
you run that code in PHP5 it will modify the original variable and that may
not be a desired effect if you depended on that variable later on in your
PHP4 script.

One way to improve PHP5 compatibility is to avoid depending on passing
objects by value; if you do pass an object in PHP4, make sure the function
you are passing it to has a '&' in front of the argument, so that you are
sure you are working on a reference.
Jul 17 '05 #7
Andy Hassall <an**@andyh.co.uk> wrote in message news:<pd********************************@4ax.com>. ..
<snip>
I've only done very brief testing (an hour or two) on the 5.0.0 release, and
got Mysterious Crashes when using Oracle. Probably just teething troubles, but
it's put me off for the moment until I get a bit more time to trace it back.


So, this force us to write forward compatible codes?

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #8

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om...
Andy Hassall <an**@andyh.co.uk> wrote in message
news:<pd********************************@4ax.com>. ..
<snip>
I've only done very brief testing (an hour or two) on the 5.0.0 release,
and
got Mysterious Crashes when using Oracle. Probably just teething
troubles, but
it's put me off for the moment until I get a bit more time to trace it
back.


So, this force us to write forward compatible codes?


This mean PHP5 still has lot of bugs
I dont have any problem with PHP5 and Oracle 9 on Linux

Savut
http://www.savut.com

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Shane Groff | last post by:
I know this is a recurring discussion (I've spent the last 3 days reading through threads on the topic), but I feel compelled to start it up again. After reading through the existing threads, I...
6
by: Josh Mcfarlane | last post by:
I keep trying to get myself out of the return-code mindset, but it doesn't seem to work. They are suppose to get rid of if-then statements of return codes, but you still have to do an if statement...
18
by: Steve Litvack | last post by:
Hello, I have built an XMLDocument object instance and I get the following string when I examine the InnerXml property: <?xml version=\"1.0\"?><ROOT><UserData UserID=\"2282\"><Tag1...
3
by: c# beginner | last post by:
we are trying to standardize return codes across our .NET applications (that are soon to be developed.) What is the best practice for standardizing return codes? I know of only the following...
5
by: max | last post by:
Dear all, I did the following analysis to conclude that the following pointer types are not compatible. Please let me know If my analysis and interpretation of the C standard are correct: ...
3
by: PerlPhi | last post by:
hi! i have a Perl code in here that when ran the program accepts any Perl codes from the user input (<STDIN>, of course use no syntax errors), then after breaking the multiline input, the inputs will...
9
by: Alexander Dong Back Kim | last post by:
Dear all, I'm doing an experimental thing that the codes I wrote can be compiled by both VS2005 and gcc. I saw somewhere on the web that I can use compiler's pre-defined value something life...
5
by: varunchadha | last post by:
hey i want to convert one of my c# codes into a mobile OS compatible language... plz tell a way to do it or if any software can convert it...plz help me.... reply asap
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.