shuhaib864 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

php-notices while sending #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call xmpp with error_reporting(E_ALL)
2.
3.

What is the expected output? What do you see instead?
expected: no output ;-)
actual: php notices

What version of the product are you using? On what operating system?
XMPPHP 0.1 beta (rev 18)

Please provide any additional information below.
php version 5.2.5

exact error, when calling the code from the sendmessage example (with own
user information, of course!):

Notice: Undefined property: XMPP::$xmlobj in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 239

Notice: Trying to get property of non-object in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 241

Notice: Undefined property: XMPP::$xmlobj in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 239

Notice: Trying to get property of non-object in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 241

Notice: Undefined property: XMPP::$xmlobj in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 239

Notice: Trying to get property of non-object in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 241

Notice: Undefined property: XMPP::$xmlobj in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 239

Notice: Trying to get property of non-object in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 241

Notice: Undefined property: XMPP::$xmlobj in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 256

Notice: Undefined index: id in
D:\makeweb\docs\makeweb\external\xmpphp\xmlstream.php on line 248

Original issue reported on code.google.com by stephan....@gmail.com on 10 Apr 2008 at 9:47

GoogleCodeExporter commented 8 years ago
A quick patch to check that things exist before we use them in one or two 
places -
there will be plenty more around  though

Original comment by daniel.o...@gmail.com on 13 Apr 2008 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago
See also: Issue 2

Original comment by daniel.o...@gmail.com on 13 Apr 2008 at 3:49

GoogleCodeExporter commented 8 years ago
Patch for these are in Issue 3 patch, they check for the set and remove the 
messages.

Original comment by darren...@gmail.com on 14 Apr 2008 at 7:17

GoogleCodeExporter commented 8 years ago
fixed in SVN

Original comment by nathanfr...@gmail.com on 16 Apr 2008 at 10:29