long maxwait = zend_ini_long("max_execution_time",
sizeof("max_execution_time"), 0);
The problem is that ZEND_STRL does not return the correct length for the way this API is used, so do not use it.
, -, PHP, , NUL ( ), sizeof (), strlen() sizeof() - 1.