Questions tagged [php-internals]
How the PHP programming language works underneath, and questions about the underlying C code.
php-internals
268
questions
2
votes
2
answers
959
views
Similar syntax causes strange, repeated compile errors when building PHP from source on Windows
I am trying to build PHP from source per these instructions. The configure works really well, but when I get to the nmake part, things fall apart. I have no idea why I am getting errors about struct's,...
46
votes
2
answers
22k
views
What's the difference between "extension" and "zend_extension" in php.ini?
When I installed Xdebug through pecl, it added the following line to my php.ini file.
extension="xdebug.so"
and everything I used worked. Until today.
Today I was having trouble setting up Xdebug ...
-2
votes
2
answers
1k
views
How to get rid of these warnings after installing zend core? [duplicate]
Really annoying!
PHP Warning: PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, ...
3
votes
1
answer
2k
views
Linking a PHP Extension Written in C
Edit: Revising My Question
When building an external PHP module in C, how do I link shared objects?
4
votes
1
answer
3k
views
callbacks in jni
Is there any way to pass a callback to java code, from C. And the call returns immediately. Later on, after completing the task, the java code can invoke that callback.
I have a C extension for php ...
15
votes
3
answers
15k
views
Getting Started with PHP Extension-Development [closed]
Please suggest help articles or tutorials about PHP "low" level С-modules programming interface.
3
votes
3
answers
937
views
Reading php.ini using zend for PHP extension (not PHP language)
I am trying to read some settings from php.ini using zend. The API that I am using is
long zend_ini_long(char *name, uint name_length, int orig)
But it always returns 0. I have double checked the ...
4
votes
1
answer
1k
views
How do I add an array as an Object Property to a class declared within a PHP extension?
I want my PHP extension to declare a class equivalent to the following PHP:
class MyClass
{
public $MyMemberArray;
__construct()
{
$this->MyMemberArray = array();
}
}
I'm ...
0
votes
1
answer
629
views
PHP 5.2.9 build fails on zend_execute.lo - out of memory?
I'm trying to get PHP compiled with EXIF support. Every time I try to build PHP 5.2.9 on my virtual dedicated server running CentOS 5.3, it fails when it gets to building zend_execute.lo. I tried ...
1
vote
1
answer
379
views
Log the REQUEST_URI variable when php is set to log to syslog
This is the source code of php_log_err. I would like to modify it to be able to log the variable _SERVER["REQUEST_URI"]
/* {{{ php_log_err
*/
PHPAPI void php_log_err(char *log_message TSRMLS_DC)
{
...
21
votes
3
answers
11k
views
Reading Zend Engine API code: What does ## (double hash) mean?
Out of curiousity, I'm reading the Zend Engine API code and encountered quite a number of ## in their #define's. For example, at /usr/lib/php5/Zend/zend_API.h:
#define ZEND_FN(name) zif_##name
#...
2
votes
2
answers
902
views
Missing symbol after compiling swig interface
Im trying to compile a php interface for my linux shared object and i have managed to get it to compile all right using the output from swig, however when i try and load the so it complains of a ...
26
votes
5
answers
10k
views
How are associative arrays implemented in PHP?
Can someone explain how PHP implements associative arrays? What underlying data structure does PHP use? Does PHP hash the key and store it in some kind of hash map? I am curious because I was ...