php-internals
Zend extension, get arguments of echo?
We have made a Zend extension which we want to write the addresses of the zval\'s echo is supposed to write out, but we cannot figure how to receive them because we have noticed that there is differen[详细]
2023-04-10 05:06 分类:问答php extension how to return a string from a method?
I have in [example.cc] a method : std::string Car::accelerate (std::string n) { cout<<n<<endl;[详细]
2023-04-05 00:52 分类:问答php extension method not returned why?
Here is the php_ex.cc . When I compile my .so library the retur() method is not working. WHY? I have no errors, but It should print \"test\" and it doesn;t . need somehelp.THX[详细]
2023-04-04 08:53 分类:问答Array as class member and refcounting
There is something that confuses me. Let there be a class member Foo::$bar, which has to be initialized as an empty array in the[详细]
2023-03-31 04:23 分类:问答PHP Zend Engine Extension static method call [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-03-24 07:31 分类:问答Parentheses altering semantics of function call result
It was noted in another question that wrapping the result of a PHP function call in parentheses can somehow convert the result into a fully-fledged expression, such that the following works:[详细]
2023-03-21 09:56 分类:问答puzzling php parser error
Ok maybe not so puzzling, but here it is. I was messing around and noticed this, typing just <?php in a file, just that, no space after that, nothing else just the tag, throws a parse error.[详细]
2023-03-20 18:34 分类:问答PHP array syntax/operator?
When writing the syntax for an associative array in PHP we do the following $a = array(\'foo\' => \'bar\');[详细]
2023-03-15 20:11 分类:问答How does PHP implements its all fit container `array`?
If it were c++,this can be a开发者_开发技巧chieved by template,but as we know PHP is written in c,how\'s this kind of data struct implemented without template?It\'s a hash table. For the implementatio[详细]
2023-03-09 03:40 分类:问答How does PHP assign and free memory for variables?
I was wondering when does PHP free the memory which is used for a variables for example function foo(){[详细]
2023-03-05 11:13 分类:问答