Edit report at https://bugs.php.net/bug.php?id=60040&edit=1

 ID:                 60040
 Updated by:         ka...@php.net
 Reported by:        jille at hexon dot cx
 Summary:            "!var & flags" used
-Status:             Open
+Status:             Assigned
 Type:               Feature/Change Request
 Package:            Output Control
 Operating System:   n/a
 PHP Version:        5.3.8
-Assigned To:        
+Assigned To:        kalle
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2011-10-11 14:14:35] jille at hexon dot cx

Description:
------------
The patch is self-explanatory, but:

php_end_ob_buffer contains:
  if (!OG(active_ob_buffer).status & PHP_OUTPUT_HANDLER_START) {
    /* our first call */
    status |= PHP_OUTPUT_HANDLER_START;
  }

But !var & flags will first evaluate !var and only after that evaluate the 
AND-operator.

In this case it doesn't have any affect as PHP_OUTPUT_HANDLER_START is 1.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60040&edit=1

Reply via email to