Re: php5 busts php4 code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hassan Ebrahimi-Nuyken wrote:

I am running:

apache 2.0.52
MySQL 4.1.7
php 4.3.9

I have a program for user data entry, retrieval, editing and updating.
Works fine.

When I updated php to 5.0.3:

Data entry works fine (including login with password)
but data requested does not populate populate form anymore.
I have all error reporting turned on and nothing comes back/

Data entry integrity was checked with seperate application = OK/

This isn't php5 busting php4 code - it's running an application that was programmed for/against php4 under php5, and figuring out what's wrong.


This is a major version change, and it is possible it could take some work to get things perfectly. My gut reaction is somethings wrong if you're not getting any errors with all error reporting turned on, unless you had previously gone ahead and tweaked this for use under php5 - but maybe I use array_merge more often than most :).

How was data integrity checked with a separate application - what exactly did you test? Do you mean you logged in (under the php5 version) and added some data, then viewed it on an apache running under your original configuration?

Go read up on http://us3.php.net/manual/en/faq.migration5.php#faq.migration5.php45 (which points you to http://us3.php.net/manual/en/migration5.php ). The main area you need to look at is http://us3.php.net/manual/en/migration5.incompatible.php

One possible suggestion is check your data sources - it may be that whatever (class/etc) reading the data is in some way using different libraries/includes from what's setting it - and it's somehow misconfigured/etc. Different users, different paths, different libraries to read vs. save data, etc. I dunno, nobody turned the light on here so it's a shot in the dark.

If your application is constantly suppressing errors (@ prefixing function calls), or just not testing what's returned, then you're going to have a long couple of days/nights - so go get some caffeine before anything else.

Good luck, shed some more light and we'll see if we can't help you better.

Cheers,
--
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux