Package Details: php-smbclient 1.0.0-1

Git Clone URL: (read-only)
Package Base: php-smbclient
Description: PHP bindings for libsmbclient.
Upstream URL:
Licenses: BSD
Submitter: icewind
Maintainer: icewind
Last Packager: icewind
Votes: 3
Popularity: 0.332094
First Submitted: 2015-09-21 14:32
Last Updated: 2018-12-25 20:09

Latest Comments

icewind commented on 2018-12-25 20:20

updated to 1.0.0 which has php 7.3 support

stochastix commented on 2018-12-19 05:20

Thanks columbariu_s, If anyone wants commands and locations. Make a directory to clone git repos to if you don't have one and run the following commands as regular user.

mkdir ~/myGitRepos
cd myGitRepos
git clone
cd libsmbclient-php
git checkout remi-php73
sudo cp modules/ /usr/lib/php/modules/

Either inside /etc/php/php.ini or in /etc/php/conf.d/smbclient.ini have the line


sudo systemctl restart httpd.service

and it should work now! FYI, I didn't need to go to that specific commit, and it compiles and seemed to work fine for me.

columbariu_s commented on 2018-12-19 02:30

I had the same problem and needed this package for nextcloud (version 15) to connect to smb shares. I cloned the repo from github ( and used the remi-php73 branch at the commit (fix for PHP 7.3 because of API change, and array_init always succeeds).

git checkout -b remi-php73 596eaa47642633a4dc80f26f6bfbd95b536e57d1

From this state I built it like described in the README and copied the to the php-module folder, replacing the old one and that worked for me. My guess would be something broke with php7.3.

Tojeski commented on 2018-12-11 22:13

Cant seem to make it at the moment,

php-smbclient/src/libsmbclient-php-0.9.0/smbclient.c:2034:6: note: in expansion of macro ‘array_init’ if (array_init(return_value) != SUCCESS) { ^~~~~~~~~~ make: *** [Makefile:194: smbclient.lo] Error 1

Not sure what the cause it, configure runs fine, any ideas?

swalladge commented on 2018-02-07 06:43

Just a heads up - if you get the following when you run php after upgrading:

PHP Warning:  PHP Startup: smbclient: Unable to initialize module

Then you need to rebuild this package against the php version running on your system. :)