How the Zend Engine turns HTML outside PHP tags into T_INLINE_HTML tokens and ZEND_ECHO opcodes (split into 400-character chunks), and how the '@' error suppression operator is compiled into two oplines that swap error_reporting(0) in and out around the statement.
with 0 CommentWhy must Xdebug be loaded as a Zend extension, and how does a Zend extension differ from a regular PHP extension? This article traces the full extension loading path in PHP 5, from php_module_startup and php_init_config down to php_dl, showing where php extensions and zend extensions are registered and started.
with 0 CommentPHP is often a poor fit for a resident SHELL process. It has no dedicated GC routine, and no effective path to memory management. So if you use PHP as a resident SHELL, you'll often be unhappy when memory exhaustion aborts the process.
And if the incoming data is invalid while the SHELL doesn't check it, causing an abort, that will make you unhappy too.
So? What do we do?
Multiple processes....
Do you know how to write the fastest loop?
I just came across an interesting question on Xiaodong Guo's blog: " The difference between $i++ and ++$i in PHP ", and it was interesting enough that I wrote up an answer....