473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with PEAR + PHP5 + is_a function

FreeBSD 6.2
PHP 5.2.3
PEAR 1.6.1

Keep getting the below error:

"Encountered error 2048 in /usr/local/share/pear/PEAR.php, line 281:
is_a(): Deprecated. Please use the instanceof operator"

I look through PEAR.php and it's full of is_a() functions, if it's
been deprecated in PHP5, why is it there?
I'm sure when I wrote this script a month ago I didn't get these
errors.

Aug 8 '07 #1
2 3794
..oO(gr******@googlemail.com)
>Keep getting the below error:

"Encountered error 2048 in /usr/local/share/pear/PEAR.php, line 281:
is_a(): Deprecated. Please use the instanceof operator"

I look through PEAR.php and it's full of is_a() functions, if it's
been deprecated in PHP5, why is it there?
PEAR itself and most of its classes are written for PHP 4.

Micha
Aug 8 '07 #2
On Aug 8, 11:15 pm, Michael Fesser <neti...@gmx.dewrote:
PEAR itself and most of its classes are written for PHP 4.
Now I know why I didn't get that error when I first did the code a
month ago, it's because I added set_error_handler("On_Error"); to the
script at the top, before it was just hidden away, doh!

Aug 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Terje Slettebų | last post by:
To round off my trilogy of "why"'s about PHP... :) If this subject have been discussed before, I'd appreciate a pointer to it. I again haven't found it in a search of the PHP groups. The PHP...
0
by: Michel P. | last post by:
Hi, I'm trying to install the bcompiler extension, under PHP 5.0.4 / Apache / FreeBSD, but can't finalize the install process... Has anybody allready done it ? I'm using the recommended...
4
by: petermichaux | last post by:
Hi, I have installed PHP 5.0.3 for OS X. I have read in several places that PEAR is included in recent installations of PHP. I'm having trouble getting PEAR DB working. How would I know or test...
2
by: Jay | last post by:
Newbie alert. Is the standard php library exclusively for PHP5 or is there one for PHP4? How do I start using it? Is there a require or include directive needed in order to make use of it? ...
1
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
2
by: awebguynow | last post by:
latest PEAR on W32, refers to PHP5 inaccurately. I've seen posts regarding path's that get messed up, by lost ini's or registry settings. I don't think that's my case, because I can't find PHP5 in...
1
by: IchBin | last post by:
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that the PEAR installed dir structure I have (to DB subdir) is : C:\php5.2\PEAR\pear\DB My registry vars are:...
4
by: inetquestion | last post by:
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. ...
5
by: john | last post by:
All: Very experienced developer, newbie to PHP. My situation: I have installed on my WIndows XP machine the following: * PHP 5.2.1 * MySQL 5.0 * Apache 2.2 All of these are installed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.