php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67803 createProxy returns an empty DbusObject
Submitted: 2014-08-07 15:55 UTC Modified: 2014-08-07 17:11 UTC
From: contact at epoc dot fr Assigned:
Status: Open Package: DBus (PECL)
PHP Version: 5.5.9 OS: Ubuntu 14.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: contact at epoc dot fr
New email:
PHP Version: OS:

 

 [2014-08-07 15:55 UTC] contact at epoc dot fr
Description:
------------
When creating a D-Bus proxy, the returned objet is an empty DbusObject. Calling D-Bus methods is thus not possible.

PHP 5.5.9 on Ubuntu 14.04 LTS

Test script:
---------------
$dbus = new Dbus(Dbus::BUS_SESSION);

// The D-Bus name, object path and interface exists
$clementine_player_proxy = $dbus->createProxy('org.mpris.clementine', '/Player', 'org.freedesktop.MediaPlayer'); // To interract with the Clementine audio player

var_dump($clementine_player_proxy);

Expected result:
----------------
A non-empty DbusObject object

Actual result:
--------------
object(DbusObject)#3 (0) {}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-07 16:27 UTC] contact at epoc dot fr
-PHP Version: 5.5.15 +PHP Version: 5.5.9
 [2014-08-07 16:27 UTC] contact at epoc dot fr
Addition :
----------

When I call a D-Bus method (like GetMetaData, which exists in the org.freedesktop.MediaPlayer interface) :

$dbus = new Dbus(Dbus::BUS_SESSION);
 
$clementine_player_proxy = $dbus->createProxy('org.mpris.clementine', '/Player', 'org.freedesktop.MediaPlayer');
 
var_dump($clementine_player_proxy->GetMetaData());

Exception throwns : DbusObject::__call(): org.freedesktop.DBus.Error.UnknownMethod: No such method 'GetMetaData' in interface 'org.freedesktop.MediaPlayer' at object path '/Player' (signature '')
 [2014-08-07 17:07 UTC] contact at epoc dot fr
Addition :
----------

Tested with another method (Addtrack) with another object path (/TrackList). It works. I don't understand.
 [2014-08-07 17:11 UTC] contact at epoc dot fr
Sorry for the spam, I forget to mention that the method Addtrack take two arguments : Addtrack(string, bool). GetMetaData don't.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC