Re: PEAR DB and PHP 5.4
| From: | Michael Kleinert | Date: | Fri, 14 Mar 2014 14:23:12 +0000 |
| Subject: | Re: PEAR DB and PHP 5.4 | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31883@lists.php.net to get a copy of this message | ||
Hi Christian -
This is not actually my code, but a client's code, so I'm trying to find
the solution for him.
Is MDB2 a drop-in replacement?
My client's page is supposed to generate an Excel spreadsheet but no longer
does that and instead generates the below - I know how to suppress the
errors, but suppressing the errors is not going to restore the
functionality, right? -
*Strict Standards*: Non-static method DB::isManip() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *2200*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1217*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1666*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB.php* on line *1387*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1683*
*Strict Standards*: Non-static method DB::isManip() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *2200*
*Strict Standards*: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in
*/usr/local/lib/php/DB/common.php* on line *1217*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *110*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *111*
*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/local/lib/php/DB/common.php:2200) in
*/home/monterey/public_html/theatrical/contracts/farewelltofools/contracts/hostedit.php*
on
line *112*
"id","Code","BillOrg","BillFirstName","BillLastName","BillPosition","BillAddress","BillCity","BillState","BillPostalCode","BillCountry","BillEmail","BillCountryCode","BillPhone","BookerOrg","BookerFirstName","BookerLastName","BookerPosition","BookerAddress","BookerCity","BookerState","BookerPostalCode","BookerCountry","BookerEmail","BookerCountryCode","BookerPhone","ShipOrg","ShipFirstName","ShipLastName","ShipPosition","ShipAddress","ShipCity","ShipState","ShipPostalCode","ShipCountry","ShipEmail","ShipCountryCode","ShipPhone","ListOrg","ListAddress","ListCity","ListState","ListPostalCode","ListCountry","ListContact","ListPhone","ListOpens","ListWWW","ConfirmationEmail","ListWeight","ShowDate1","ShowDate2","ShowDate3","ShowDate4","ShowDate5","ShowDate6","ShowDate7","ShowDate8","ShowDate9","ShowDate10","Holdover","Approved","Individual","Filed","Trash","DateAdded"
"1","1", .... additional client data ....
On Fri, Mar 14, 2014 at 12:55 AM, Christian Weiske <cweiske@cweiske.de>wrote:
> Hello Michael,
>
>
> > Hi there - We upgraded a server to PHP 5.4 and PEAR DB no longer works
> > properly. I see that the project page refers to a newer project,
> > MDB2, but it looks like that was last updated in late 2012 so I'm not
> > sure if that one supports PHP 5.4.
> >
> > Can anybody shed any light on this or provide guidance for a solution?
>
> I know that MDB2 works on 5.4, but if you're changing your code anyway
> you should use PDO.
>
> Guidance for a solution is only possible if you give us error messages
> and (small) scripts that reproducible don't work.
>
> --
> Regards/Mit freundlichen Grüßen
> Christian Weiske
>
> -=≡ Geeking around in the name of science since 1982 ≡=-
>
--
_______________________________________
Signup for hosting today at BigRedHosting.com