Comments (9)
... Ok I found the problem. My protobuf.ini contained extensions=protobuf.so
instead of extension=protobuf.so
.
from php-protobuf.
Module is not loaded automatically by your php installation.
from php-protobuf.
Thanks for your response. I have already included Protobuf.so in php.ini. So it should be executable from browser also ,right??
from php-protobuf.
Make sure you edited the right php.ini file (not just one for CLI interface).
from php-protobuf.
I have edited /etc/php.ini from server.
How can I verify whether I have edited the correct php.ini?using phpinfo?
from php-protobuf.
Yeap, phpinfo() function should provide you with this information.
from php-protobuf.
I'm getting the same problem. phpinfo reports that file /etc/php/7.2/cli/conf.d/20-protobuf.ini
was loaded and the file contains extensions=protobuf.so
. But still I'm getting Fatal error: Class 'ProtobufMessage' not found
. php -m
does not contain protobuf either. Why?
from php-protobuf.
@enumag make sure you placed protobuf.so
in a directory where PHP looks up for extensions. You can find this directory by running command:
$ php-config --extension-dir
from php-protobuf.
@hjagodzinski Yes, protobuf.so
is indeed in php-config --extension-dir
. But it still isn't in php -m
. I have no idea what I might have missed.
➜ ~ php -i | grep protobuf
/etc/php/7.2/cli/conf.d/20-protobuf.ini,
➜ ~ cat /etc/php/7.2/cli/conf.d/20-protobuf.ini
extensions=protobuf.so
➜ ~ php-config --extension-dir
/usr/lib/php/20170718
➜ ~ cd /usr/lib/php/20170718
➜ 20170718 ls
apc.so exif.so memprof.so protobuf.so wddx.so
apcu.so fileinfo.so mysqli.so readline.so xdebug.so
bcmath.so ftp.so mysqlnd.so shmop.so xmlreader.so
blackfire.so gd.so opcache.so simplexml.so xml.so
build gettext.so pdo_mysql.so sockets.so xmlwriter.so
calendar.so iconv.so pdo_pgsql.so swoole.so xsl.so
ctype.so inotify.so pdo.so sysvmsg.so zip.so
curl.so intl.so pgsql.so sysvsem.so
dom.so json.so phar.so sysvshm.so
ds.so mbstring.so posix.so tokenizer.so
➜ 20170718 php -m | grep protobuf
➜ 20170718
I'm using Ubuntu 18.04.
from php-protobuf.
Related Issues (20)
- How to generate the CodeGeneratorResponse.php file? HOT 2
- How to define namespace using protoc?
- Error while installation, step 3 Build and install the PHP extension. HOT 2
- ERROR: The protoc command in your system is too old. Minimum required version is 2.6.0 but found 2.5.0 HOT 1
- Does this extension have a Windows version HOT 1
- make: *** [protobuf.lo] Error 1 HOT 7
- 64-bit integers on x86 HOT 2
- Can it be encoded as a binary stream? HOT 1
- Why change null to another value? HOT 4
- read Protocol Buffers delimited HOT 2
- ERROR: Unable to find the protoc command. Please make sure it's installed and available in the path. HOT 1
- ERROR: protobuf module is not installed. --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 1. HOT 5
- Does php-protobuf support extend HOT 1
- Add support for extensions
- --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 127. HOT 10
- How do we send request and receive response with this? HOT 1
- Can't be compiled for > PHP 7 on Windows 7 x64 HOT 4
- one question --php_out: protoc-gen-php: Plugin output is unparseable: This is a stub file for IDEs, don't use it directly! HOT 1
- php8.0 编译不成功 HOT 1
- Macbook m1 chip php5.6.31 wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-protobuf.