Alfred Klomp
Alfred Klomp
@yashrajsapra Thanks! It would also have been fine with me if you kept the repo but reinstated the GPL license and acknowledged the original author. It would have been an...
`smbc_notify` was added to libsmbclient.h on June 26, 2015. I wonder how it should be implemented for PHP, since the notifications come asynchronously through callbacks. You'd have to register a...
Well, PHP can also be (ab)used as a tool to write CLI programs/daemons, so adding notify support is not totally crazy. I just wonder how hard it is to hook...
- Under the hood, libsmbclient-php translates all three seek types into a `SEEK_SET`. - An strace shows that the PHP code does indeed trigger an `fcntl64(11, F_GETLK64, {type=F_UNLCK, whence=SEEK_SET, start=4294967299,...
This is definitely a bug, but I'm afraid that we're powerless to do anything about it. This project is just an interface to libsmbclient. We can't do any low-level Samba...
It's possible that the [call we do](https://github.com/eduardok/libsmbclient-php/blob/master/libsmbclient.c#L247) to `smbc_free_context()` in the destructor fails and returns ~~zero~~ one. I didn't check if it does, but it would be totally within libsmbclient's...
An easy way to check if `smbc_free_context` is returning 1 for failure is to check the PHP error logs: they should have a message saying that the context could not...
Sounds useful. I was under the impression from reading `libsmbclient.h` that the only output options for debug info were either printing it to `stdout` or printing it to `stderr`. Neither...
Quick question: do you get the same error if you run PHP in cli mode (from the commandline?) Any errors in the log? `smbclient_state_free` checks the return value of `smbc_free_context`...
I'm fairly sure that the issue happens because the library is not properly threadsafe the PHP way. Specifically, the globals defined on [line 63](https://github.com/eduardok/libsmbclient-php/blob/bf2c2/libsmbclient.c#L63) and 64 should probably be guarded...