pear and zend

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
eduard77
Forum Newbie
Posts: 17
Joined: Sun Nov 22, 2009 10:10 pm

pear and zend

Post by eduard77 »

I have a question. I wanted to make a site and I used as usuall pear and zend framework. When I wanted to load the page I received a warrning that function, whatever, is depracted. Ok so far so good, but I am reather new in php so I would like to know what happens if I make a site, I sell it and after one month o function that I used depractes. What would be the solutin for this?
Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: pear and zend

Post by Christopher »

"depracted" means that in some future version of PHP (maybe 6.0) that function may be removed. Zend Framework should be updated regularly, so you don't need to worry much about that. But you should check the PEAR packages that you are using to make sure they are still maintained. If some are not then replace them.
(#10850)
eduard77
Forum Newbie
Posts: 17
Joined: Sun Nov 22, 2009 10:10 pm

Re: pear and zend

Post by eduard77 »

I understand this but if I sell a web site and the function deprects do I have to change it after?
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: pear and zend

Post by JNettles »

Probably not - most likely (hopefully) your site will be running in a production environment where PHP display errors/warnings are turned off. The warnings and parser errors we see in development are intended for just that - development. On a production site PHP is typically configured to write errors to the Apache error log or some other text file.

Still, there's always the risk that your client will upgrade to a future version of PHP that will remove the function that you're trying to use, breaking your script. What is the deprecated function you're trying to use? Most often there's a replacement that functions largely the same.
eduard77
Forum Newbie
Posts: 17
Joined: Sun Nov 22, 2009 10:10 pm

Re: pear and zend

Post by eduard77 »

Is not about any special function but about how to deal with them in the future after I sold the website
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: pear and zend

Post by Christopher »

You may want to tell your client know that if their hosting changes in the future (upgrades or changing hosts) that the software may need to be upgraded. It is the same for any computer software ... they can understand that.
(#10850)
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: pear and zend

Post by Eran »

This is exactly why hosting companies are afraid of upgrading to newer versions as they become available. I'd suggest simply not using any deprecated functions - they are being deprecated for a reason (usually replaced with a better alternative).
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: pear and zend

Post by josh »

If you did not guarantee the script to be forward compatible with any given version of PHP, It would be unreasonable for anyone to expect you to do so. You should be asking your client, not us... what happens. Heh, maybe he'll fire you, on the other hand maybe he'll just pay you $1,000s to upgrade it later since you made him a lot of $

Youre asking us to tell you what your client wants basically
Post Reply