[PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
Hi, I have a problem with fsockopen in connection with the UNIX abstract namespace. To open a UNIX socket in the abstract namespace I have to add a nul byte in front of the path. Unfortunately PHP returns fsockopen() [function.fsockopen]: unable to connect to unix://:0 (Connection refused) for

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread Jochem Maas
@4u schreef: Hi, I have a problem with fsockopen in connection with the UNIX abstract namespace. To open a UNIX socket in the abstract namespace I have to add a nul byte in front of the path. Unfortunately PHP returns fsockopen() [function.fsockopen]: unable to connect to unix://:0

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
Hi, thanks for your help - unfortunately it doesn't help. With stream_socket_client () I get the message unable to connect to unix://\0/tmp/hald-local/dbus-ZniNmvr5O0 (Connection refused) in /root/dbus_session.php on line 272 which is at least better, because it shows the full path. I verified

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread Jochem Maas
@4u schreef: Hi, thanks for your help - unfortunately it doesn't help. With stream_socket_client () I get the message unable to connect to unix://\0/tmp/hald-local/dbus-ZniNmvr5O0 (Connection refused) in /root/dbus_session.php on line 272 which is at least better, because it shows the full

Re: [PHP] PHP fsockopen with the UNIX abstract namespace

2008-02-13 Thread @4u
Hi again, Jochem Maas schrieb: @4u schreef: [snip] is the connection refused a permissions thing here? can you verify that it's possible to connect? I'm not sure but I don't think so. 1.) we speak about D-BUS and 2.) its owner and root should always be able to connect to it. Especially the