fastsupply / xmpphp Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/xmpphp
Automatically exported from code.google.com/p/xmpphp
Using the XMPPHP library have added the ability to retrieve the VCard for
the user. You send your VCard request and in the iq handler function once
you have processed the vcard and set the appropriate variable you can send
the event vcard_recevied and then your processUntil will know that it is
received and you can then access the vcard via the vcard variable that the
function creates.
Original issue reported on code.google.com by [email protected]
on 29 Aug 2008 at 3:30
Attachments:
What steps will reproduce the problem?
1. logging into the xmpp server
2. sending the stream information
What is the expected output? What do you see instead?
No error messages regarding specific missing objects.
Error messages regarding specific objects.
What version of the product are you using? On what operating system?
SVN revision 18 (ArchLinux latest version)
Please provide any additional information below.
Two diff files are the difference between r18 and the changes made, they
will both remove the error messages that were being displayed when
information was not there.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2008 at 6:03
Attachments:
hello,
I use version rev 50. running on ubuntu 8.04
while trying to connect, I get the message, and it doesn't connect..
always print this message...
----
Warning: array_key_exists(): The second argument should be either an array
or an object in /home/xmpphp/XMLStream.php on line 451
----
any suggestion ?
Thank you
Frans
Original issue reported on code.google.com by [email protected]
on 7 Aug 2008 at 8:20
{{
$c=array('tls'=>array( 'verify_peer' =>false,
'allow_self_signed' =>true
)
);
stream_context_create($c)
}}
Original issue reported on code.google.com by [email protected]
on 10 Apr 2008 at 9:59
What steps will reproduce the problem?
1. send presence to chat room
2. send message to chat room
What is the expected output? What do you see instead?
Should see message in chat room. But message does not appear. Message
WILL appear if presence includes from='jid/alias'
What version of the product are you using? On what operating system?
Using latest debian test package which I believe is 0.1beta-r54
Please provide any additional information below.
Easy fix is to modify XMPP.php->presence to add the from field:
...
public function presence($status = null, $show = 'available', $to = null,
$type='available') {
if($type == 'available') $type = '';
$to = htmlspecialchars($to);
$status = htmlspecialchars($status);
if($show == 'unavailable') $type = 'unavailable';
$out = "<presence from='{$this->fulljid}";
...
Original issue reported on code.google.com by [email protected]
on 21 Mar 2009 at 9:14
What steps will reproduce the problem?
1. Use cli_longrun_example_bosh.php
2. Point the connection stuff to your local ejabberd instance
3. run cli_longrun_example_bosh.php
What is the expected output? What do you see instead?
I would the example to connect to the server. Instead it waits forever on
processUntil. This is a log of the connection:
OUT: <?xml version="1.0"?>
<body xmlns="http://jabber.org/protocol/httpbind"
xmlns:xmpp="urn:xmpp:xbosh" content="text/xml; charset=utf-8" rid="3001"
lang="en" hold="1" to="kaoskinder.de" route="xmpp:kaoskinder.de:5280"
secure="true" version="1.6" wait="1" ack="1" xmpp="urn:xmpp:xbosh"/>
IN: <body xmlns='http://jabber.org/protocol/httpbind'
sid='c9df0c2446b10c49817b3d597116520dfba6019c' wait='1' requests='2'
inactivity='30' maxpause='120' polling='2' ver='1.6' from='kaoskinder.de'
secure='true' authid='1636826938' xmlns:xmpp='urn:xmpp:xbosh'
xmlns:stream='http://etherx.jabber.org/streams'/>
OUT: <?xml version="1.0"?>
<body xmlns="http://jabber.org/protocol/httpbind"
xmlns:xmpp="urn:xmpp:xbosh" content="text/xml; charset=utf-8" rid="3002"
sid="c9df0c2446b10c49817b3d597116520dfba6019c" lang="en"/>
IN: <body xmlns='http://jabber.org/protocol/httpbind'/>
OUT: <?xml version="1.0"?>
<body xmlns="http://jabber.org/protocol/httpbind"
xmlns:xmpp="urn:xmpp:xbosh" content="text/xml; charset=utf-8" rid="3003"
sid="c9df0c2446b10c49817b3d597116520dfba6019c" lang="en"/>
IN: <body xmlns='http://jabber.org/protocol/httpbind'/>
OUT: <?xml version="1.0"?>
<body xmlns="http://jabber.org/protocol/httpbind"
xmlns:xmpp="urn:xmpp:xbosh" content="text/xml; charset=utf-8" rid="3004"
sid="c9df0c2446b10c49817b3d597116520dfba6019c" lang="en"/>
What version of the product are you using? On what operating system?
* xmpphp-svn
* php 5.2.6
* libxml 2.7.2
* ejabberd 2.2
Please provide any additional information below.
I think this happens because SimpleXML drops namspaces of attributes. For
example:
>> $xml = new SimpleXMLElement("<body
xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' />");
SimpleXMLElement::__set_state(array(
))
>> $xml->addAttribute('xml:lang','en');
>> $xml->asXML()
'<?xml version="1.0"?>
<body xmlns="http://jabber.org/protocol/httpbind"
xmlns:xmpp="urn:xmpp:xbosh" lang="en"/>
'
I tested the http-bind connection with muckl (which uses jsjac) and it
worked and which sends the namespaces.
Original issue reported on code.google.com by [email protected]
on 29 Oct 2008 at 10:20
What steps will reproduce the problem?
1. Install PEAR
2. Add PEAR to the default include path like its by most hosters
What is the expected output? What do you see instead?
Expected would be the inclusion of the XMPPHP Log Class, instead the PEAR
Log.php will be included. This leads to various PHP errors like missing
constants or methods.
What version of the product are you using? On what operating system?
Tested with the latest SVN release of XMPPHP on openSUSE 11.0 with PHP
5.2.5 running on Apache 2.2.6.
Please provide any additional information below.
To fix this issue i would suggest to either prefix the Log class name with
the XMPPHP_ namespace or prefix the require paths with the XMPPHP path.
(require_once 'Log.php'; to require_once 'XMPPHP/Log.php'; or require_once
'XMLObj.php'; to require_once 'XMPPHP/XMLObj.php';)
The best would be to apply both fixes and also apply the namespacing to all
other classes to provide further missinclusion and to be more standard
compliant ;)
Original issue reported on code.google.com by [email protected]
on 3 Sep 2008 at 12:41
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 [email protected]
on 10 Apr 2008 at 9:47
Hi,
I made a php5 version.
Diff is attached.
Stephan
Original issue reported on code.google.com by [email protected]
on 28 Apr 2008 at 9:16
Attachments:
[error] PHP Strict standards: Function call_user_method() is deprecated in
/var/www/xmpphp/xmlstream.php on line 248
I get this message under PHP 5.2.x with error_reporting E_STRICT
See http://php.net/manual/en/function/.call-user-func.php
Original issue reported on code.google.com by [email protected]
on 21 Apr 2008 at 7:28
Instead of using a define statements, in PHP5 we can use class constants.
Here is a patch for Logging class.
Original issue reported on code.google.com by [email protected]
on 7 Apr 2008 at 4:23
Attachments:
i found an early version of your library and played with the cli example and
was working great.
Sending quit would kill the script as expected and break would restart it.
I've since upgraded the library to the latest available and break seems to just
kill the script as
well.
I've searched through the source code and cant see any major change that should
affect this.
Is break meant to kill the connection? If not, what might be causing this
issue. I'm using the
exact same server details as the previous version of the library.
Cheers,
Ben
Original issue reported on code.google.com by [email protected]
on 17 Jul 2008 at 11:28
What steps will reproduce the problem?
1. Retrieve a vCard with photo from a contact, per XEP-0153 (
http://www.xmpp.org/extensions/xep-0153.html )
2. Attempt base64 decode
3. Base64 decode may fail due to linefeed(s) / newline(s) (ASCII character
10) present in character data of the photo's associated BINVAL
What is the expected output? What do you see instead?
-The BINVAL's data needs to be the original data prior to receipt and
reassembly, without the additional linefeeds.
-Instead, there may be one or more linefeeds in the base64-encoded binary
image data.
-Simply stripping all ASCII 10 characters seems to restore the data
consistently.
What version of the product are you using? On what operating system?
Please provide any additional information below.
-Simply stripping all ASCII 10 characters seems to restore the data
consistently.
-Suspicion: off-by-one or other offset or reassembly problem in
xmlstream.php code.
Original issue reported on code.google.com by [email protected]
on 5 Jul 2008 at 4:23
When processUntil called with timeout specified returns without any events
processed, php crashes with "fatal error". This is due to processUntil
tries to unset elements of arrays that might be empty. The existence of
array elements should be checked before unsetting.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2008 at 9:35
Attachments:
What steps will reproduce the problem?
1. Starting up WAMP server
2. Opening the sendmessage_example.php from its directory
What is the expected output? What do you see instead?
I guess the expected output should not be a series of errors. What I get
instead is a series of errors: Warning: stream_socket_enable_crypto()
[streams.crypto]: this stream does not support SSL/crypto in
C:\wamp\www\xmpphp\XMPPHP\XMPP.php on line 380 1233662315 [WARNING]:
Reconnecting (30)... 1233662315 [INFO]: Connecting to
tcp://talk.google.com:5222 1233662315 [INFO]: Starting TLS encryption
What version of the product are you using? On what operating system?
I'm using the xmpphp-0.1rc1-r70.tar version on Windows XP
Please provide any additional information below.
I've uncommented my extension=php_openssl.dll in the php.ini file. I don't
get what the problem is. Shouldn't it be working just without any
interference from me?
Thanks.
Original issue reported on code.google.com by [email protected]
on 3 Feb 2009 at 12:01
It would be nice to be able to handle, for example, subscription using
xmpphp. It's possible to just write the XML directly to the stream, but it
would be nicer if XMPP::presence() accepted a $type parameter.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2008 at 2:35
In XMLStream.php the socket_select call blocks and if you're using XMPPHP from
within a script
where you loop forever and catch SIGINT/TERM to exit it produces the following
warning:
Warning: stream_select(): unable to select [4]: Interrupted system call
(max_fd=5)
--- lib/XMPPHP/XMLStream.php (revision 46)
+++ lib/XMPPHP/XMLStream.php (working copy)
@@ -368,7 +368,7 @@
$read = array($this->socket);
$write = null;
$except = null;
- $updated = stream_select($read, $write, $except, 1);
+ $updated = @stream_select($read, $write, $except, 1);
if ($updated > 0) {
$buff = @fread($this->socket, 1024);
if(!$buff) {
Original issue reported on code.google.com by [email protected]
on 11 Jul 2008 at 4:02
What steps will reproduce the problem?
1. Create a connection
2. Connect
3. Call presence
What is the expected output? What do you see instead?
If everything was ok i expect no notice buy instead i get:
Notice: Undefined index: type in lib/XMPPHP/XMPP.php on line 216
Notice: Undefined index: type in lib/XMPPHP/XMPP.php on line 219
What version of the product are you using? On what operating system?
0.1beta-r50
Please provide any additional information below.
How to fix:
Change line 216 to:
if(array_key_exists('type', $xml->attrs) && $xml->attrs['type'] ==
'subscribe') {
and line 219 to:
} elseif(array_key_exists('type', $xml->attrs) && $xml->attrs['type'] ==
'subscribed') {
Original issue reported on code.google.com by [email protected]
on 20 Aug 2008 at 11:52
No steps, i need to make a heartbeat function like class_jabber.php, for a
web based chat, how i can acomplish that?
My application needs to check every n seconds to see if there is a message...
Thank
BTW
are you latinoamerican?
i'm from mexico...
Original issue reported on code.google.com by [email protected]
on 11 Jul 2008 at 5:17
Attached patch adds the ability to add and remove roster contacts.
Original issue reported on code.google.com by [email protected]
on 30 Aug 2008 at 8:26
Attachments:
See http://xmpp.org/extensions/xep-0202.html
Provide simple API to
1) Query other user agents as to their local timezone
2) Response to queries from strangers
Original issue reported on code.google.com by [email protected]
on 8 Oct 2008 at 4:34
What steps will reproduce the problem?
1. Receiving presence packets with no status
2. Receiving presence packets with no show
What is the expected output? What do you see instead?
No error messages regarding the show and status.
Undefined variables or undefined reference
What version of the product are you using? On what operating system?
SVN Revision 18
Please provide any additional information below.
Attached is a diff of the xmpp.php against revision 18 which should fix the
issues seen with no status or show in the presence packets.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2008 at 5:07
Attachments:
Otherwise, there's a lot of
Warning: stream_socket_enable_crypto(): this stream does not support
SSL/crypto in C:\work\xmpphp\xmpp.php on line 137
... which is scary looking, but just means I don't have openssl enabled
Original issue reported on code.google.com by [email protected]
on 13 Apr 2008 at 3:41
Attached is service discovery patch for the xmpphp library. Still need to
do more to it but it supports both items and info. Information is returned
in the array based off the type i.e. feature, identity or item.
Original issue reported on code.google.com by [email protected]
on 31 Aug 2008 at 3:20
Attachments:
XMLStream.php
line 377:$until_count[$event_key] = 0;
should be
$this->until_count[$event_key] = 0;
Original issue reported on code.google.com by [email protected]
on 14 Nov 2008 at 4:37
There is a tiny typo in xmpp.php in line 54: paytload
Original issue reported on code.google.com by [email protected]
on 25 Apr 2008 at 11:20
Hi!
If You take the simple example and do it without $conn->connect() (as I did
by mistake), the http server eats all CPU time in
XMPPHP_XMLStream::__process(). I suggest some minimal timeout should be
used with stream_select() to avoid this in a similar situation.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2009 at 4:14
1. __construct instead of function [classname]()
2. __destruct for disconnecting from server
3. public, protected, private instead of var and before functions
4. use __autoload instead of multiple require_once
5. method chaining (method returns $this, so it is possible to do for
example $conn->presence($status)->message($someone,$something)->disconnect(); )
Original issue reported on code.google.com by [email protected]
on 9 Apr 2008 at 6:28
What steps will reproduce the problem?
1. Create an instance of the XMPPHP class
3. Call the disconnect method
Okay this is actually a dumbed down example to reproduce the problem
normaly you would first call the connect method catch the exception and so
on. I have encountered this problem becase i created a facade class for the
xmpp object which calls the disconnect method on deconstruction of the
object which basicly does almost the same like this example:
require_once 'XMPPHP/XMPP.php';
$xmpp = new XMPPHP_XMPP('unavailableserver.de', 80, 'test', 'test', 'none');
$xmpp->disconnect();
What is the expected output?
Nothing should happen :) Atleast the script should not run until it reaches
the php timeout limit.
What do you see instead?
In its current state the script runs until the php timeout limit is reached
because the disconnect method trys to send the stream close stanza.
What version of the product are you using? On what operating system?
Tested with SVN release 54 of XMPPHP on openSUSE 11.0 with PHP
5.2.5 running on Apache 2.2.6.
Please provide any additional information below.
Add checks to affected methods like XMPPHP_XMLStream::disconnect if the
xmpp connection is available, maybe the best solution would be to add the
check only to the XMPPHP_XMLStream::send method.
Original issue reported on code.google.com by [email protected]
on 3 Sep 2008 at 2:31
What steps will reproduce the problem?
1. Attempt to run the tests.
What is the expected output? What do you see instead?
The test suite output. Warnings about missing includes.
What version of the product are you using? On what operating system?
SVN HEAD, Debian GNU/Linux.
Please provide any additional information below.
Patch attached.
Original issue reported on code.google.com by [email protected]
on 4 Aug 2008 at 11:39
Attachments:
hello,
I try to print out the memory,
start about 600kb
15:33 (2378160).
15:40 (2700896).
15:47 (3023652).
15:54 (3362852).
16:01 (3686168).
16:08 (4008968).
it seems xmpphp uses about 300kb every 7 minutes, and it will grow up until
max memory setting in php (finally quit).
how to enhance this? where should I put the unset to free the memory,
at least it doesn't eat a lot of memory...
because I need the xmpp run 24 hours a day (always connected)...
Thank you very much,
Original issue reported on code.google.com by [email protected]
on 12 Sep 2008 at 9:15
$type is never defined in xmpp::presence() - r18
Original issue reported on code.google.com by [email protected]
on 13 Apr 2008 at 4:40
Attached is a patch to handle the get roster so you can return it as an
array keyed by the jid with subscription, groups and name.
Might actually have to add a little more for the array merge incase there
is more than one group but this is a good start for it. Also added the
event so process until can detect when it is finished. Patch is attached.
Original issue reported on code.google.com by [email protected]
on 30 Aug 2008 at 7:47
Attachments:
Hi,
It's XMPP Extensions User Mood and User Activity.
view : http://xmpp.org/extensions/xep-0107.html and
http://xmpp.org/extensions/xep-0108.html
It's easy for imcorporation, can you add this extensions in xmpphp ?
Original issue reported on code.google.com by [email protected]
on 21 Dec 2008 at 10:58
You can use addEventHandler as much as you like, but the handlers are never
called. Simple fix, in XMLStream.php:
public function addEventHandler($name, $pointer, $obj) {
$this->eventhanders[] = array($name, $pointer, $obj);
It says handers instead of handlers. Change that and it works.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2008 at 7:57
What steps will reproduce the problem?
1. i run the sendmessage_example.php (already configure with my login and
password)
2.
3.
What version of the product are you using? On what operating system?
xmpphp-0.1beta-r49.tar.gz
Please provide any additional information below.
the console always print
PHP Warning: stream_select(): unable to select [9]: Bad file descriptor
(max_fd
=0) in C:\My Documents\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning: stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning: stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning: stream_select(): unable to select [9]: Bad file descriptor
(max_fd
=0) in C:\My Documents\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning: stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
Original issue reported on code.google.com by [email protected]
on 18 Jul 2008 at 10:08
What steps will reproduce the problem?
1. Send initial presence to the room
2. Send iq packet for room configuration
What is the expected output? What do you see instead?
Should receive the iq packet back quickly. IQ packet is split up because of
the size of the buffer read being set to 1k
What version of the product are you using? On what operating system?
r54 HEAD on Arch Linux
Please provide any additional information below.
Provided patch for setting it as a parameter in the stream then it can be
set in one place.
Original issue reported on code.google.com by [email protected]
on 2 Sep 2008 at 7:45
Attachments:
public function isDisconnected() {
return $this->connected;
}
Should be:
public function isDisconnected() {
return $this->disconnected;
}
Original issue reported on code.google.com by [email protected]
on 17 Jul 2008 at 12:08
[deleted issue]
What steps will reproduce the problem?
1. Running it
2.
3.
What is the expected output? What do you see instead?
No errors.
Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto
in C:\wamp\www\jabber\xmpp.php on line 135
What version of the product are you using? On what operating system?
I've used the r18 and patched with the previous message's diff files.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Apr 2008 at 7:46
Hello, i'm trying to run 'webclient_example.php' on my local Openfire
server with HTTP-Binding enabled and old-style script syntax support enabled.
#line 12: $conn = new XMPPHP_BOSH('localhost', 5222, 'someuser',
'somepass', 'xmpphp', 'localhost', $printlog=true,
$loglevel=XMPPHP_Log::LEVEL_VERBOSE);
#line 22: $conn->connect('http://localhost:7070/http-bind', 1, true);
As output I get:
1234814173 [VERBOSE]: Error on stream_select()
1234814173 [WARNING]: Reconnecting (30)...
Fatal error: Uncaught exception 'Exception' with message 'String could not
be parsed as XML' in C:\xampp\htdocs\XMPPHP\BOSH.php:75
Stack trace:
#0 C:\xampp\htdocs\XMPPHP\BOSH.php(75): SimpleXMLElement->__construct('')
#1 C:\xampp\htdocs\XMPPHP\XMLStream.php(337): XMPPHP_BOSH->connect(30,
false, false)
#2 C:\xampp\htdocs\XMPPHP\XMLStream.php(401): XMPPHP_XMLStream->doReconnect()
#3 C:\xampp\htdocs\XMPPHP\XMLStream.php(471): XMPPHP_XMLStream->__process()
#4 C:\xampp\htdocs\webclient_example.php(24):
XMPPHP_XMLStream->processUntil(Array)
#5 {main}
thrown in C:\xampp\htdocs\XMPPHP\BOSH.php on line 75
I'm, using latest SVN version of this library. My OS is Windows XP SP3 and
as webserver I'm using Apache2+PHP5(XAMPP distribution).
The same error I've get at remote ejabberd server, but I'm not sure that
that server works correctly.
Original issue reported on code.google.com by ua.bogus
on 16 Feb 2009 at 8:08
Is there anyway to automatically authorize/subscribe requests? I wish to have
automatic friend
adding.
I see in the sleekxmpp there is self.auto_authorize and self.auto_subscribe.
Anyway to do the same with XMPP?
Original issue reported on code.google.com by [email protected]
on 26 Apr 2008 at 9:57
It would be nice to be able to send messages to groupchats/conferences.
This might require to join the "room" before sending the message.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2008 at 1:43
When call method $conn->getRoster() of XMPPHP class I get correct answer
from server like "<iq .. type='result'><query
xmlns='jabber:iq:roster'><item ..", but roster_iq_handler not executing.
May be because XMPPHP_XMLStream::addXPathHandler not correctly parse XPath
query "iq/{jabber:iq:roster}query". This problem exist in
cli_longrun_example.php, but because in example don't used class Roster it
imperceptible.
Original issue reported on code.google.com by [email protected]
on 26 Jan 2009 at 5:13
What steps will reproduce the problem?
Use XMLStream.php in an environment with php/Log.php and PEAR/Exception.php
already installed and loaded by your application. In this particular case
we are using Horde/IMP.
What is the expected output? What do you see instead?
I get an error when XMLStream tries to instantiate the XMPPHP_Log class
$this->log = new XMPPHP_Log($printlog, $loglevel);
because php/XMPPHP/Log.php was not loaded because php/Log.php is already
loaded.
What version of the product are you using? On what operating system?
Using the debian testing package with 0.1 Beta-r54. But the issue also
exists in the latest 0.1 RC1 (rev 70).
Please provide any additional information below.
Simple fix is to do this...
/** XMPPHP_Exception */
require_once 'XMPPHP/Exception.php';
/** XMPPHP_XMLObj */
require_once 'XMPPHP/XMLObj.php';
/** XMPPHP_Log */
require_once 'XMPPHP/Log.php';
Original issue reported on code.google.com by [email protected]
on 24 Mar 2009 at 1:33
This patch is based on version r21.
* XMPP::use_encryption is now declared in the class as it should be when
using class members.
* The XMPP constructor takes another optional argument to set the use of
encryption. (Default: true, as hard-coded before)
* XMLStream::connect returns true on success and false on failure. (More
return values or exceptions are appreciated but not included in this patch.)
Original issue reported on code.google.com by [email protected]
on 21 Apr 2008 at 6:13
Attachments:
### What steps will reproduce the problem?
1. running example script, adapted for my google-talk login.
Verified manually with Psi-client, ID/password is definitely working.
### What is the expected output? What do you see instead?
Expected: working to login, if not with SSL, then at least
login without should be possible. Verified manually with Psi-client,
ID/password is working.
## With old version r21 ##
INFO : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="AFCD7421C509B530" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client"><stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
DEBUG : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG : EVENT: end_stream
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="1DD4D012856619A9" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
VERBOSE: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features><stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
DEBUG : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG : EVENT: end_stream
VERBOSE: RECV: <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="swissjabber.ch" id="046F0B4C87AA4E76" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
VERBOSE: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
DEBUG : Calling features_handler
VERBOSE: SENT: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required
/></starttls>
VERBOSE: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error></stream:stream>
VERBOSE: SENT: </stream:stream>
WARNING: Reconnecting...
INFO : Connecting to tcp://talk.google.com:5222
VERBOSE: SENT: <stream:stream to="swissjabber.ch"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
DEBUG : EVENT: end_stream
## With current SVN-version (r41? - checked out again on date of bugreport) ##
1213361568 [INFO]: Connecting to tcp://talk.google.com:5222
1213361568 [VERBOSE]: SENT: <stream:stream to="jabber.org"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
version="1.0">
1213361568 [VERBOSE]: RECV: <?xml version="1.0"
encoding="UTF-8"?><stream:stream from="jabber.org" id="E6F981BE3B32937F"
version="1.0" xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client">
1213361568 [VERBOSE]: RECV: <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>
1213361568 [DEBUG]: Calling features_handler
1213361568 [VERBOSE]: SENT: <starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required /></starttls>
1213361568 [VERBOSE]: RECV: <stream:error><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text
xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of
stream element to the domain part of the user's JID. Example:
to='gmail.com'.</str:text></stream:error>
1213361568 [VERBOSE]: RECV: </stream:stream>
1213361568 [VERBOSE]: SENT: </stream:stream>
1213361568 [WARNING]: Reconnecting...
1213361568 [INFO]: Connecting to tcp://talk.google.com:5222
1213361568 [ERROR]: Could not connect.
Could not connect.
----
### Please provide any additional information below.
It seems that for others it's working. :(
Any hint/fix appreciated.
Original issue reported on code.google.com by [email protected]
on 13 Jun 2008 at 1:09
Hello,
I try v54, the error is :
--------------------------------------------------
1222233357 [INFO]: Connecting to tcp://talk.google.com:5222
PHP Notice: Uninitialized string offset: 0 in
xmpphpr54\xmpphp\XMLStream.php on line 379
PHP Notice: Uninitialized string offset: 0 in
xmpphpr54\xmpphp\XMLStream.php on line 379
PHP Notice: Uninitialized string offset: 0 in
xmpphpr54\xmpphp\XMLStream.php on line 379
1222233359 [INFO]: Starting TLS encryption
PHP Notice: Uninitialized string offset: 0 in
xmpphpr54\xmpphp\XMLStream.php on line 379
PHP Fatal error: Cannot unset string offsets in
xmpphpr54\xmpphp\XMLStream.php on line 388
--------------------------------------------------
and it quits. before I use v50 and no problem.
Please help
Frans
Original issue reported on code.google.com by [email protected]
on 24 Sep 2008 at 5:23
Noticed a typo in xmpp.php, (trivial) patch attached.
Original issue reported on code.google.com by [email protected]
on 23 Jun 2008 at 3:23
Attachments:
Investigate why enabling crypto times out on some machines and not others.
Original issue reported on code.google.com by [email protected]
on 10 Apr 2008 at 10:00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.