1,032 questions
Score of 3
3
votes
1 answer
1
answer
176 views
176
views
Why do I need `zend_extension = xdebug`?
My system is:
Windows 11 Pro
Xampp
PHP 8.2.12
xdebug v3.5.1
I define the binary in my php.ini as
zend_extension = "D:\websites\php\ext\php_xdebug-3.5.1-8.2-ts-vs16-x86_64.dll"
Everything ...
Score of 3
3
votes
1 answer
1
answer
199 views
199
views
Conditional jump or move depends on uninitialised value(s) with php_pcre_match_impl
I'm creating a simple function in PHP-C extension, I'm using PHP 8.3 from source, enable opcache and pcre.jit. I set ZEND_DONT_UNLOAD_MODULES is 1 and USE_ZEND_ALLOC is 0 for the Valgrind
Inside my ...
Score of 0
0
votes
1 answer
1
answer
1241 views
1k
views
PHP 8.4.3 unable to load extension intl despite being uncommented and at the path specified
I am attempting to install the latest version of MediaWiki (1.43), and I am using PHP version 8.4.3. The OS is Windows Server 2022 Datacenter.
Here is the error I get from command-line:
PHP Warning: ...
Score of 0
0
votes
1 answer
1
answer
77 views
77
views
how can I get the result of openssl_public_decrypt?
The result is "Decrypted data is not a string", I don't know why
#include "php.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include &...
Score of 1
1
vote
1 answer
1
answer
681 views
681
views
Unable to install openswoole extension in php 8.3.6
I am trying to built and extension of openswoole from more than 13 hours but getting the same error again and again.
PHP Warning: PHP Startup: Unable to load dynamic library
'openswoole.so' (tried: /...
Score of 2
2
votes
1 answer
1
answer
74 views
74
views
How do you call an ArrayIterator instance method from within a PHP extension
In SaxonC PHP extension (written in C++) I am writing utility to allow users to write custom functions in their PHP script which will get called in XSLT, XPath or XQuery. I am using the zend framework....
Score of 2
2
votes
1 answer
1
answer
615 views
615
views
FrankenPHP: How to use my own zend extension
I just found out about FrankenPHP - it's running really good so far. To make a benchmark test, i have to integrate my own PHP Zend Extension first, to see if it is viable to dig deeper into this. My ...
Score of 2
2
votes
2 answers
2
answers
101 views
101
views
How do you know you have an ArrayIterator in a PHP extension
In SaxonC PHP extension (written in C++) I am writing utility to allow users to write custom functions in their PHP script which will get called in XSLT, XPath or XQuery. Therefore we have to handle a ...
Score of 0
0
votes
0 answers
0
answers
90 views
90
views
How to expose functions from decrypted code in PHP extensions
I am trying to secure my laravel project, or at least the most critical parts of it. I am planning to make it a SaaS but it will take me sometime so I was going to just encrypt most of the project....
Score of -2
-2
votes
1 answer
1
answer
98 views
98
views
What does it actually mean by "supporting ports of PHP extensions or features"?
I'm using Windows 10 Home Single Language 64-bit operating system, x64-based processor having Version 22H2 on my laptop.
Today I come across the below text on the website dedicated to supporting PHP ...
Score of -1
-1
votes
1 answer
1
answer
75 views
75
views
php not loading mongodb extension in xampp
I am trying to connect my laravel project to a mongodb. My php version is 8.1. I downloaded the threadsafe x64 for php 8.1 from text and pasted the dll file in my ext folder in php folder of xampp. ...
Score of 0
0
votes
1 answer
1
answer
450 views
450
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 ...
Score of 1
1
vote
1 answer
1
answer
68 views
68
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 ...
Score of 0
0
votes
1 answer
1
answer
358 views
358
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....
Score of 0
0
votes
0 answers
0
answers
43 views
43
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 ...