473,406 Members | 2,336 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,406 software developers and data experts.

Odd warngs with MySQL and PHP5.1.2

I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
each and every query:

PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 980
PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 983

Every thing aappears to be working, just scores of these warnings.

Any clues?

--
Ian Collins.
Mar 15 '06 #1
3 1637
Ian Collins wrote:
I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
each and every query: PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 980
PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 983 Every thing aappears to be working, just scores of these warnings. Any clues?

looks like it is trying to convert a character field to a number field and
can't.
Mar 15 '06 #2
Ian Collins wrote:
I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
each and every query:

PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 980
PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 983

Every thing aappears to be working, just scores of these warnings.

The lines in question are:

in function tableInfo($result, $mode = null)

if ($mode & DB_TABLEINFO_ORDER) {

if ($mode & DB_TABLEINFO_ORDERTABLE) {

Odd.

--
Ian Collins.
Mar 15 '06 #3
noone wrote:
Ian Collins wrote:
I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
each and every query:


PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 980
PHP Notice: Object of class DB_result could not be converted to int in
/opt/csw/php5/lib/php/DB/mysql.php on line 983


looks like it is trying to convert a character field to a number field
and can't.

Which is odd when the line is

if ($mode & DB_TABLEINFO_ORDER)

and 0 is passed to mode.

--
Ian Collins.
Mar 15 '06 #4

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

Similar topics

8
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
6
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for...
4
by: Philipp Lenssen | last post by:
OK, I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running...
5
by: red | last post by:
I don't see why mysql is telling me the following is a syntax error: create table articles { file char(30) not null }; What is wrong with that ?
0
by: gunzip | last post by:
I want to setup PHP5 to access MySQL 4.0 on the local (Fedora 2) machine and 4.1 on a remote (OS X) machine. I've compiled PHP5 successfully using '--with-mysql=/usr' to find the local MySQL 4.0...
0
by: Jason | last post by:
Hi I've been looking at the upcoming PHP5 with some excitement -- well, until tonight. It seems support for MySQL in PHP5 will be dropped, or that is to say; support for MySQL 4 and later will...
15
by: Susan Baker | last post by:
Note: This is different from previous post. I am coming from a C/C++ background. I have a frontend (written in C#), my backend was originally meant to be a J2EE application with PostGreSQL. I am...
1
by: Nospam | last post by:
I am trying to get mysql 4, php5, and apache to work on my winxp sp2 comp, unfortunately even though php5 and apache seems to work ok I am unable to utilise mysql with php and apache, I have yet to...
8
by: Tony B | last post by:
Hi, I'm trying out my local copy of a site that uses php4, mysql,apache2. I've moved it from a php4 machine to a php5 machine, and it doesn't work at all now. A couple of other php4 sites I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.