Skip to main content

All Questions

Tagged with
2 votes
0 answers
2k views

The Zend Engine API version 320170718 which is installed, is newer

I am currently experiencing a problem with xdebug. I wanted to do a php bin/console cache:clear for my Symfony application but it got me this error: Warning: Xdebug MUST be loaded as a Zend ...
Lucatorze's user avatar
  • 107
2 votes
1 answer
190 views

Confusion using xdebug_debug_zval between refcount and is_ref

I'm using xdebug_debug_zval in order to understand how references changed between PHP 5 and PHP 7. <?php $array = array('k1', 'k2', 'k3'); echo PHP_VERSION. '<br/>'; foreach ($array as &$...
Nico's user avatar
  • 459
0 votes
1 answer
233 views

Extending PHP syntax with extensions?

I'm trying to introduce few things that I've learned in languages like Scala and Haskell to PHP and experiment with it. To give a concrete example, I would like to extend the PHP syntax to be able to ...
Ashkan Kh. Nazary's user avatar
6 votes
1 answer
363 views

Why does foreach increase refcount by 2 instead of 1?

NikiC stated in another thread: Right before [a foreach] iteration the $array is "soft copied" for use in foreach. This means that no actual copy is done, but only the refcount of the zval of $...
Pacerier's user avatar
  • 88.6k
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 ...
Alana Storm's user avatar