Questions tagged [php-extension]
Extensions, typically written in C or C++, can enhance the functionality of PHP with external code. Use this tag *only* for questions about the development of PHP extensions, not their use.
php-extension
1,037
questions
0
votes
0
answers
32
views
Why can I hook ZEND_ECHO but not ZEND_INCLUDE_OR_EVAL?
In php5.6.30, i have following code:
<?php
eval("system(\"whoami\");");
the opcode is:
line #* E I O op fetch ext return operands
------...
0
votes
1
answer
58
views
How to install mongodb PHP extension for PHP 7.1 in 2024
I did a clean install of my system and currently running Ubuntu 24.04. I have a legacy project running on PHP 7.1 which uses MongoDB so I need to install the extension for PHP 7.1.
And here comes the ...
1
vote
1
answer
35
views
C Module for PHP expected expression during PHP_FE [closed]
I'm trying to write a Hello World repository that takes a standard C function and exposes it as an internal/built-in function to PHP (and other languages written in C).
[ 27%] Building C object ...
0
votes
1
answer
48
views
Getting Error when try to enable bcmath extension on heroku using composer.json file
I am trying to enable bcmath php extension on heroku using composer.json file as per documentation instructions article.
When try to build i got error
remote: Problem 1
remote: - Root composer....
0
votes
0
answers
26
views
Define variable to auto run extension on file load
Is it possible to predefine some type of constant inside my own php extension, so php compiler will recognise it in file and then passes php code to my extension? I want to write some sort of custom ...
0
votes
0
answers
34
views
Detecting method of extension usage in php code
I'm now creating php extension for personal purpose and future developed projects. It must return a string as another function variable with specific name and thats all. But I want alter answer which ...
0
votes
0
answers
29
views
Add extension=intl.dll in godaddy
I'm trying to enable the php intl extension in GoDaddy, but I haven't been able to. Add the extension in the.user.ini file, I have plesk Window hosting any idea how to add it. ...
1
vote
1
answer
147
views
compiling shared php-module as dll (windows)
i'm trying to compile a shared extension for php 8.3.6 x64 for windows
i basicly followed these instructions: https://ourcodeworld.com/articles/read/804/how-to-compile-a-php-extension-dll-file-in-...
0
votes
0
answers
120
views
Install 'Brotli' PHP extension on Windows
I'm looking to install Brotli php extension on my Windows Server 2022 server as it offer ~15% better compression performance than Gzip. But I really can't find a proper way to install it. Any ...
-1
votes
1
answer
218
views
How can I download mod_authnz_sspi.so since its no more available on apachehaus?
I'm trying to get REMOTE_USER in the PHP header using Apache 2.4.
Can someone provide a mod_authnz_sspi.so file or link? The primary goal is to bypass the login screen using Windows credentials, thus ...
0
votes
1
answer
53
views
How to include Memcached
As the title says, I don't understand how to include the Memcached class. Installed from the official PHP Manual
$mc = new Memcached();
$mc->addServer("localhost", 11211);
$mc->set(&...
0
votes
1
answer
129
views
Looking for PDO Informix extension for PHP 8.3 [closed]
I'm trying to connect my Php 8.3 (x64) to IBM Informix database.
I have found pre-compiled versions of the extension for PHP 8.0 and 8.1 but it doesn't work with PHP 8.3.
Does anyone have this ...
0
votes
1
answer
105
views
PHP DLL Extensions not loading - "The specified module could not be found"
I downloaded the pdo_ibm and ibm_db2 extensions for PHP and have placed them in the /ext folder (as .dll for Windows). After that, I go to php.ini and add the following lines (without the ';'):
...
-1
votes
1
answer
1k
views
How to install 'ext-grpc' or 'grpc' on Ubuntu?
I was trying to install google/cloud-firestore package in my Laravel 10 project. Then I was getting this error.
Problem 1
- google/cloud-firestore is locked to version v1.31.0 and an update of ...
-1
votes
1
answer
463
views
PHP extensions (like `mongodb`) is not loading for a specific PHP version (e.g., 8.1) enabled by Laravel Herd on macOS?
I'm using Laravel Herd on macOS with multiple PHP versions managed by Herd (7.4, 8.1, 8.2, 8.3). I verified that PHP 8.1 is active using php -v.
Following the Herd documentation for adding extensions (...