[PHP-BUG] Bug #61272 [NEW]: ob_start callback get passed empty string

2012-03-04 Thread peacech at gmail dot com
From: 
Operating system: Arch 32 bit
PHP version:  5.4.0
Package:  Output Control
Bug Type: Bug
Bug description:ob_start callback get passed empty string

Description:

Running test script below with PHP 5.4 outputs

""

Running test script below with PHP 5.3 outputs

"hello"

Test script:
---
https://bugs.php.net/bug.php?id=61272&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61272&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61272&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=61272&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61272&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61272&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61272&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=61272&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=61272&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=61272&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=61272&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=61272&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=61272&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=61272&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61272&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=61272&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=61272&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=61272&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=61272&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=61272&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=61272&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=61272&r=mysqlcfg



Bug #61272 [Nab]: ob_start callback get passed empty string

2012-03-05 Thread peacech at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=61272&edit=1

 ID: 61272
 User updated by:peacech at gmail dot com
 Reported by:peacech at gmail dot com
 Summary:ob_start callback get passed empty string
 Status: Not a bug
 Type:   Bug
 Package:Output Control
 Operating System:   Arch 32 bit
 PHP Version:5.4.0
 Block user comment: N
 Private report: N

 New Comment:

Unless ob_start callback specification has changed that for 
ob_clean/ob_end_clean, the output is discarded before calling the callback, 
then this is a bug. And I have scan the PHP 5.4 changelog and couldn't find 
anything mentioning this change.

So let me help by showing where the problem is

In line 1226 of output.c in the distributed PHP 5.4.0 source,

if (flags & PHP_OUTPUT_POP_DISCARD) {
context.op |= PHP_OUTPUT_HANDLER_CLEAN;
orphan->buffer.used = 0;
}
php_output_handler_op(orphan, &context);

orphan->buffer.used should not be set to 0 before calling the callback, 
otherwise the callback will be called with empty buffer.

And likewise in line 300 in php_output_clean

So, no, it isn't about appending $output to $buffer.


Previous Comments:

[2012-03-05 11:23:43] m...@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You should append $output to $buffer.

----
[2012-03-04 10:53:53] peacech at gmail dot com

Description:

Running test script below with PHP 5.4 outputs

""

Running test script below with PHP 5.3 outputs

"hello"

Test script:
---
https://bugs.php.net/bug.php?id=61272&edit=1


[PHP-BUG] Bug #64508 [NEW]: conversions.c: undefined reference to php_set_inet6_addr

2013-03-24 Thread peacech at gmail dot com
From: peacech at gmail dot com
Operating system: Linux
PHP version:  5.5.0beta1
Package:  Compile Failure
Bug Type: Bug
Bug description:conversions.c: undefined reference to php_set_inet6_addr

Description:

Compiling PHP with --disable-ipv6 gives above error.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64508&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64508&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64508&r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=64508&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=64508&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=64508&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64508&r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=64508&r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=64508&r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=64508&r=support
Expected behavior:  https://bugs.php.net/fix.php?id=64508&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64508&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64508&r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=64508&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64508&r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=64508&r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=64508&r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=64508&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64508&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64508&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64508&r=mysqlcfg