|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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) {}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 03:00:01 2025 UTC |
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 '')