Questions tagged [php-extension]

The PHP language can be enhanced through the use of extensions, which provide to PHP scripts new internal functions, classes, resource types, streams (also stream wrappers and filters) and, in general, can do anything a native program would be able to do.

Filter by
Sorted by
Tagged with
2 votes
1 answer
68 views

Linking PHP Extension with shared Library

I am currently trying to add my own written shared library to my Extension(OSB). But when i try to run ./configure --with-osb I get the error that my lib(OSC) is not found. My config.m4: PHP_ARG_WITH(...
Stefan Moser's user avatar
0 votes
1 answer
74 views

I'm searching for the activation location of my PHP extension in my PHP Docker container

When I check the activated extensions in my php Docker container, the output lists several PHP modules, such as Core, ctype, curl, and others. the extensions appears to be deactivated In the php.ini ...
Naseem Toumeh's user avatar
0 votes
0 answers
19 views

Uncaught PDOException: could not find driver [duplicate]

Currently I'm learnig some PHP, and I come across this error, which I think PHP misundertand that PDO is a method in my namspace app\core. Hope you guys can give me some advice ! <?php namespace ...
Duc Nguyen's user avatar
-1 votes
1 answer
58 views

How to launch executable file from website with php?

I want to launch (not install) an .apk/.bat/sh files when clicked on the website in the Without warning or downloading. I found that codes in php offical website: <?php $WshShell = new COM("/...
Oven Kravecki's user avatar
8 votes
1 answer
3k views

Problem when I try to add some php extension on my M1 mac

After trying to install the sqlite extension, I can no longer run php on my mac. I keep getting brew errors. Has anyone had a similar problem? dyld[58991]: Library not loaded: /opt/homebrew/opt/...
Clément Talleu's user avatar
-1 votes
1 answer
194 views

How can I install google/protobuf via composer?

I am trying to install Protobuf PHP extension in my php project as per the documentation given in https://github.com/googleads/google-ads-php requirements section in readme file. It gives me following ...
Khushal's user avatar
  • 324
1 vote
1 answer
45 views

Undefined type 'gnupg' class name error using VS Code with PHP and Intelephense extension

Screen shot of the error in VS Code: Even with checking phpinfo() you will see gnupg installed and an active extension. The code will execute properly. But in VS Code you are given a fatal error and ...
MisterG13's user avatar
  • 110
2 votes
0 answers
102 views

Writing Thread Safe PHP extensions in Visual C++ for PHP8.2.8

I am trying - and failing - to produce a Thread Safe PHP extension DLL. I use PHP in a WAMP environment and code with both C++ and PHP. Now, I'm just trying to develop my first PHP extension (Module) ...
Simon Fox's user avatar
1 vote
0 answers
48 views

MongoDB extesion not installing using sudo pecl install mongodb

I'm trying to install mongodb extenstion in MacOS (13.4.1) Chip (Apple M1 Pro) having Xampp installed with php verison PHP 7.4.1 using sudo pecl install mongodb but it's giving below error fatal error:...
Jitender Thakur's user avatar
1 vote
0 answers
132 views

To enable extensions, verify that they are enabled in your .ini files: - CyberPanel

When I try intall composer, this error shows: To enable extensions, verify that they are enabled in your .ini files I'm using CyberPanel so I run this command, but got error. sudo apt-get install ...
Bohdan V.'s user avatar
  • 115
0 votes
0 answers
521 views

Install php8.1-zip, gdl,intl on Ubuntu 18.04 failed

i tried to install the following extensions: php8.1-zip, php8.1-gdl,php8.1-intl on Ubuntu 18.04 Previously i could install the php8.1 package by sudo apt install php8.1 but after trying to install ...
Andrewboy's user avatar
  • 354
0 votes
1 answer
672 views

Install PHP extensions on Debian base image

I'm trying to have a basic lamp stack up and running in containers. I use docker-compose and have a container for mysql, and I'm building my own thing for the site. It's a site that relies on a ....
Jeremy Belolo's user avatar
5 votes
2 answers
3k views

Redis.dll not found for php8.2

I am experiencing difficulties starting Redis 5.3.7 with PHP 8.2 on my Windows machine. When I attempt to start it, a dialog box displays with the message: "The procedure entry point ...
GanesH RahuL's user avatar
0 votes
0 answers
91 views

Attempted to call function \"exif_read_data\"

So I am running a symfony application where I need the exif_read_data(). I have enabled the extension in php.ini file but for some reason the extension is not loaded. Dockerfile FROM php:7.3.27-fpm-...
Tahmid Zahin's user avatar
0 votes
1 answer
281 views

PHP extensions are showing not enabled through web browser but working through command line

I have a problem with my XAMPP installation, basically i have installed XAMPP with php7 and later added php8 to it. both are running perfectly on different ports. now i am trying to open socket ...
Wajahat Hashmi's user avatar
0 votes
1 answer
112 views

php-extension php7-mod-* not load in OpenWrt

I got Fatal error: Uncaught Error: Call to undefined function openssl_decrypt() message in my lighttpd using php file. I already have php7-mod-openssl, but php-cli -m not showing openssl. OpenWrt ...
Juzzsmee's user avatar
0 votes
1 answer
169 views

Upgrading PHP 7.4 to PHP 8.0 for Zephir Parser (Unable to initialize module)

php -v yields the following output: PHP 8.0.28 (cli) (built: Feb 14 2023 18:32:57) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.28, Copyright (c) Zend Technologies with Zend OPcache v8.0....
Jaquarh's user avatar
  • 6,558
0 votes
2 answers
631 views

Why does Composer (PHP) allow me to specify "ext-json" but not other extensions like "ext-gmp" during "composer require"?

When I use Composer to run composer require ext-gmp, without a composer.json file or composer.lock file in the current directory, I get the following error: Could not find a matching version of ...
Matt Welke's user avatar
  • 1,541
0 votes
2 answers
4k views

Installing php extensions on Dockerfile

I am trying to create my php docker image for my applications, but when I am starting building it, it fails on installing some extensions by showing this error #0 6.705 (25/26) Installing make (4.3-r0)...
ltdev's user avatar
  • 4,117
0 votes
0 answers
147 views

Mailparse is not being detected despite the DLL being in php/ext and the extension being enabled in php.ini

As the title says, I have put mailparse.dll inside C:\xampp\php\ext. This should be the correct location for extension files. Then I also enabled it in C:\xampp\php\php.ini, which is the php.ini file ...
Jack 't Jong's user avatar
0 votes
0 answers
38 views

PHP OCI8 extension is not load after switch from mpm_prefork to mpm_event

I try to install PHP OCI8 on Apache: 2.4.6, PHP: 7.4.33, and RedHat: 7. It's working fine if I use mpm_prefork but it's not load if I switch to mpm_event and it has no error log. If anybody has any ...
Udom's user avatar
  • 329
0 votes
1 answer
224 views

the extension php-intl isn't loading

I'm trying to install and use codeigniter4. After using the php spark serve cmd, I got the error : The framework needs the following extension(s) installed and loaded: intl. at SYSTEMPATH\CodeIgniter....
Mehdi Monerie's user avatar
0 votes
0 answers
259 views

No working transports found - wordpress problem

I have a Wordpress site on localhost. It has been a few months since I last did any changes on it and now I want to update to a new Wordpress version. When I try to do so, it says "Installation ...
J. Drag's user avatar
  • 41
1 vote
1 answer
232 views

PHP Extensions are not properly installing with docker composer yml file

I tried to install GD Extension in docker with the following command, But it is not installing. Can you please suggest where is the issue? Following is the code in Dockerfile. I would like to install ...
Xavier Issac's user avatar
0 votes
0 answers
164 views

mongodb/mongodb 1.8.0 requires ext-mongodb ^1.8.1 -> it is missing from your system. Install or enable PHP's mongodb extension

I am trying to deploy laravel project on the server (Ubuntu 16.04.7 LTS) with "mongodb/mongodb": "1.8.0" package, but it gives me an error mongodb/mongodb 1.8.0 requires ext-...
Aashir Haque's user avatar
0 votes
2 answers
303 views

Trying to composer update this error came up on CentOs

I'm trying to deploy my laravel project on CentOs system. When im going to run composer update command i am encountering this error. I can't figure out the solution and I saerched for soloution in ...
Niko's user avatar
  • 7
1 vote
0 answers
172 views

PHP 7.3 Startup error pdo_pgsql.so: undefined symbol: pdo_throw_exception

I have a bitnami lampstack with php 7.3 and I am unable to enable pdo_pgsql. (it should be there by default, but it isn't.) Here is what I did: add php repository sudo add-apt-repository ppa:ondrej/...
Ivan Polak's user avatar
0 votes
1 answer
628 views

When installing php oauth package: Couldn't find pcre.h, try installing the libpcre development/headers package

I need to install oauth (pecl install oauth) for a 3rd party package. I have both pcre & pcre2 installed using Homebrew but still oauth complains about not finding pcre.h. I'm on macOS Ventura 13....
Quisse's user avatar
  • 708
0 votes
0 answers
109 views

Forge Laravel ssh2

I'm hosting a wordpress site on forge laravel. In one of my files I want to use ssh2_connect. But the ssh2 php module isn't installed. The site is running on PHP 8.0. I've tried to install it through ...
Rolinda Strijker's user avatar
0 votes
2 answers
20 views

Removing .php extension except sub directory called enquire

Please assist me to stop this from removing the ".php" extension in sub directories eg: https://www.example.com/enquire/contactmail instead of: https://www.example.com/enquire/contactmail....
praveen's user avatar
0 votes
0 answers
67 views

Function password_verify is slow when run under Valgrind

I have created a PHP extension, it uses the password_verify. I have used the Valgrind for checking the memory leak. When I run the function password_verify, it takes 35 seconds for the response. Other ...
Mark Smith's user avatar
1 vote
1 answer
290 views

add php sodium extension in google cloud build

hi im new to google cloud platform this is my first project,i want to deploy an laravel app to google cloud build and im using several php-extension, i cant install sodium ext, here is my app.yml, ...
marunk's user avatar
  • 9
2 votes
1 answer
73 views

Using pthreads POSIX library within a PHP extension seemingly halting all execution

I'm trying to write and run a PHP extension that spins off a pthread (using the POSIX library in C) which detaches and runs forever (it reads messages from a queue, but for the purposes of this ...
KeithDeSantis's user avatar
0 votes
1 answer
226 views

How do I run commands in the Vapor UI after deploying Laravel 8 App in Vapor using Docker runtime?

I have been using Laravel Vapor for several years now using native runtimes and have never had an issue until recently when needing to use the Imageick PHP extension. Native runtimes don't support PHP ...
Tres Plummer's user avatar
1 vote
0 answers
36 views

Problem with FromZval<'_> is not implemented

I'm quite new to Rust, so forgive me if I ask a naive question. I've written an experimental library, named mogul, that I try to bind to PHP using ext-php-rs. And I meet a problem I don't understand. ...
Stéphane Mourey's user avatar
0 votes
1 answer
206 views

MAMP ext mailparse is not loading, not sure if installed correctly PHP 7.1.33

i started to work on web application which uses PHP 7.1.33 - which i did set up in MAMP, but I have problem to get extension mailparse - which I tried and probably installed through PECL commands. But ...
Mike's user avatar
  • 13
1 vote
2 answers
208 views

PHP extension use of uninitialized memory on second request

I have written a PHP extension, it works fine. However currently, I'm facing a strange issue. I have a function implemented for "require" files in PHP. There are no memory leaks for the ...
Mark Smith's user avatar
0 votes
1 answer
88 views

call_user_function makes memory leak

I have a simple PHP extension method PHP_METHOD(NaviModel, addRules) { zval *ruleParam, *rules, function, rv, args[2]; ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_ZVAL(ruleParam) ...
Mark Smith's user avatar
1 vote
1 answer
817 views

Error while installing php rar extension on ubuntu server

I am getting this error while installing php rar plugin on my ubuntu 20.04 server. how can i solve it? root@root:/# free -m total used free shared buff/cache ...
Metehan Kıran's user avatar
0 votes
1 answer
98 views

Segmentation Fault ZVAL_STR() when accessing current data in iterator

I'm wondering if anyone can help me. I have been working on a php extension for google-sparsehashmap which I have working as I would / need it to, all except iteration. I have been scratching my head ...
guyver4mk's user avatar
  • 609
0 votes
1 answer
81 views

What is the rv parameter in the zend_read_property function

I'm using the zend_read_property to read the attribute from an object. zend_read_property( scope: *mut zend_class_entry, object: *mut zval, name: *const c_char, name_length: size_t, ...
Mark Smith's user avatar
0 votes
2 answers
122 views

How to use the PHP gzinflate function in C (PHP Extension)

I'm not sure the best way to call the PHP function gzinflate in the C (PHP Extension). Currently, I'm using the zlib to implement a similar gzinflate function (I reused the code from the zlib PHP ...
Mark Smith's user avatar
0 votes
1 answer
183 views

PHP extension quicker way to get the _GET variable in C

I use this code to get the $_GET variable in C zend_array *symbol_table; zval *_GET = zend_hash_find_ind(&EG(symbol_table), zend_string_init("_GET", sizeof("_GET") - 1, 0)); ...
Mark Smith's user avatar
0 votes
0 answers
46 views

The best / quick way to lean for writing the PHP extension in C

I'm leaning to write some minor PHP extension in C for security purpose. Currently, I can generate the extension use the ext_skel and can separate the source code into multiple files, each file for a ...
Mark Smith's user avatar
0 votes
0 answers
469 views

php_posix.dll php extension in windows install?

Getting error $cpid = posix_getpid(); Error Fatal error: Uncaught Error: Call to undefined function posix_getpid() in D:\xampp\htdocs\kill_script\kill.php:4 Stack trace: #0 {main} thrown in D:\xampp\...
Rajesh Smartwebtech's user avatar
0 votes
1 answer
812 views

Unable to enable php-yaml for php 8.0 in ddev

After creating directory structure for Drupal9, ddev config --project-type=drupal9 --docroot=web --create-docroot i created the project, a Drupal distribution Varbase Starter Kit in this directory ...
random input's user avatar
0 votes
1 answer
3k views

Error with PHP 8.1 MongoDB driver on Ubuntu 22.04

(Note: I'm running Ubuntu server 22.04 with PHP 8.1) I have followed what I assume to be the standard procedure for setting up PHP with MongoDB on Ubuntu systems, that being: install php-fpm install ...
zer0flag's user avatar
0 votes
1 answer
77 views

Linking phpcpp fails when building PHP extension

Environment: I am trying to develop a PHP-CPP extension and have downloaded the the empty extension file from https://www.php-cpp.com/documentation/your-first-extension to start. I have also modified ...
gearDev's user avatar
  • 29
2 votes
0 answers
4k views

Why PHP 8.1 Sodium PHP-Extension shows enabled but .iso file is not in extension folder

Why the php cli command "php -m" and also phpinfo() both show "sodium" php-extension as enabled / loaded, although there is no sodium.iso file in extension folder "/usr/lib/...
Fakhar Anwar's user avatar
-3 votes
2 answers
140 views

How to catch only the PHP extensions that are necessary for the app to work

I need to catch only these PHP extensions that are necessary for the app to work. The idea is removing all the PHP extensions that are not necessary for the app. Do you guys have any idea how can I do ...
Mikaele's user avatar
  • 75

1
2 3 4 5
21