Page 1 of 1

pear and zend

Posted: Thu Jan 21, 2010 10:50 pm
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

Re: pear and zend

Posted: Fri Jan 22, 2010 1:37 am
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.

Re: pear and zend

Posted: Fri Jan 22, 2010 6:13 am
by eduard77
I understand this but if I sell a web site and the function deprects do I have to change it after?

Re: pear and zend

Posted: Fri Jan 22, 2010 9:54 am
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.

Re: pear and zend

Posted: Fri Jan 22, 2010 1:09 pm
by eduard77
Is not about any special function but about how to deal with them in the future after I sold the website

Re: pear and zend

Posted: Fri Jan 22, 2010 3:16 pm
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.

Re: pear and zend

Posted: Fri Jan 22, 2010 3:30 pm
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).

Re: pear and zend

Posted: Sat Jan 23, 2010 9:17 am
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