PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #2234

Non-static method DB::connect() should not be called statically

Details

Submitted2004-08-27 07:26 UTC
Frommarcel at korton dot nl
Assigneddanielc
StatusBogus
PackageDB
PHP Version5.0.2
OSwinxp php 5.01!!!
Roadmaps(Not assigned)

Comments

[2004-08-27 07:26 UTC] marcel at korton dot nl

Description:
------------
Non-static method DB::connect() should not be called statically

Reproduce code:
---------------
Followed the example as statet with this package:

$DATABASE = & DB::connect("mysql://user:password@server/database");

Expected result:
----------------
a working database-connection

Actual result:
--------------
the program stops

[2004-10-04 13:30 UTC] marcel at korton dot nl

Just downloaded the windows version of php 5.02,
installed it in a clean dir (c:\php)
did the go-pear and stated my app again.
The result is:
Assigning the return value of new by reference is deprecated
in db.php

in c:\windows\php.ini is:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
but let's cheange this into:
error_reporting = E_ALL & ~E_NOTICE
and see what's happening.....
Still the same problem.
Using windows xp sp2, sambar 6.1, php5.02 and don't have a clue what to do

[2004-10-05 07:12 UTC] marcel at korton dot nl

so I wrote as the first line:
echo 'error_reporting = ' . error_reporting() . "\n";

and the magic number is:
error_reporting = 2039
So strict is OFF!

I also tried it just before the
require_once("db.php");
but still the same error number 2039.

Next suggestion, please