Yasuo Ohgaki wrote:

> Derick Rethans wrote:
> 
>> Hello,
>>
>> On Mon, 3 Dec 2001, Yasuo Ohgaki wrote:
>>
>> +/* {{{ proto integer ob_get_level(void)
>> +   Return the nesting level of the output buffer */
>> +PHP_FUNCTION(ob_get_level)
>> +{
>> +       Z_LVAL_P(return_value) = OG(ob_nesting_level);
>> +       Z_TYPE_P(return_value) = IS_LONG;
>>
>>
>> RETURN_LONG (OG(ob_nesting_level)); seems nicer to me.
>>
> 
> 
> I need to remember more macros.
> Thanks. :)
> 
> I need this function to write better script and work around bug #14226. 
> Real fix for #14226 may affect ob_get_level() behavior. It may be good 
> idea add this function after the fix.
> 
> (It may be better to have different output handler list for handlers set 
> in php.ini/module initilization)
> 


I should be more careful about spelling (and grammer :)
Anyway, is anyone going to work on Bug#14226? If not, I'll post
patch that counts number of internal handlers to prevent deleting
them. Internal hanlders are registered before script execution, so
it would be enough for the bug. (Is this still true with dl()?)

I appreciate if someone is going to fix this bug, though.

--

Yasuo Ohgaki




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to