php-general Digest 20 Jul 2011 09:00:32 -0000 Issue 7407
Topics (messages 314116 through 314118):
Re: ? simple solution for error resulting from upgrade to php5
314116 by: Dr Michael Daly
314117 by: Daniel Brown
Re: ezmlm warning
314118 by: Tamara Temple
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Thanks Geert
That has fixed it, with flying colours!
Michael
On 19.07.2011, at 10:05, Dr Michael Daly wrote:
> Hi
> is there a simple solution here, other than reverting to php4?
> An upgrade from php5 to php5 has resulted in an error msg in this line:
>
> if( strlen($db_res ) > 0 ) {
isn't this a simple check if $db_res is set?
what if you change it to -
if (is_object($db_res))
i would not downgrade to php4, but fix the code, it is not that much
trouble usually
Dr Michael Daly MB, BS
GradDip(Integrative Medicine), GradCert(Evidence Based Practice),
M Bus(Information Innovation), GradDip(Document Management)
03 9521 0352
0413 879 029
--- End Message ---
--- Begin Message ---
On Tue, Jul 19, 2011 at 04:05, Dr Michael Daly <[email protected]> wrote:
> Hi
> is there a simple solution here, other than reverting to php4?
> An upgrade from php5 to php5 has resulted in an error msg in this line:
>
> if( strlen($db_res ) > 0 ) {
Change that to:
if (is_object($db_res)) {
> I understand this is bec. php5 is object orientated. It says an
> Object of class DB_result could not be converted to a string
Right. Before, it was succeeding on `strlen($db_res) > 0`
because - like an array - when called as a string, it was evaluating
to its variable type. For example:
<?php
$a = array('soo' => 'per', 'doo' => 'per');
echo $a; // Prints: Array
$b = new fakeClass(); // Presuming this class exists
echo $b; // Used to print: Object id #1
?>
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--- End Message ---
--- Begin Message ---
Um... what's going on here? Why would google mail be bouncing??
Begin forwarded message:
From: [email protected]
Date: July 20, 2011 1:08:54 AM CDT
To: [email protected]
Subject: ezmlm warning
Hi! This is the ezmlm program. I'm managing the
[email protected] mailing list.
I'm working for my owner, who can be reached
at [email protected].
Messages to you from the php-general mailing list seem to
have been bouncing. I've attached a copy of the first bounce
message I received.
If this message bounces too, I will send you a probe. If the probe
bounces,
I will remove your address from the php-general mailing list,
without further notice.
I've kept a list of which messages from the php-general mailing list
have
bounced from your address.
Copies of these messages may be in the archive.
To retrieve a set of messages 123-145 (a maximum of 100 per request),
send an empty message to:
<[email protected]>
To receive a subject and author list for the last 100 or so messages,
send an empty message to:
<[email protected]>
Here are the message numbers:
313991
--- Enclosed is a copy of the bounce message I received.
Return-Path: <>
Received: (qmail 27040 invoked for bounce); 8 Jul 2011 09:23:10 -0000
Date: 8 Jul 2011 09:23:10 -0000
From: [email protected]
To: [email protected]
Subject: failure notice
Hi. This is the qmail-send program at lists.php.net.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[email protected]>:
76.75.200.58 failed after I sent the message.
Remote host said: 550 Won't forward failure notice
--- End Message ---