-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
robinf
committed
Dec 28, 2008
1 parent
78505f8
commit c5a0027
Showing
7 changed files
with
71 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--TEST-- | ||
Bug #46900 (Unexpected behaviour in HEAD when output buffer callback returns null) | ||
--FILE-- | ||
<?php | ||
function return_null($string) { | ||
return null; | ||
} | ||
|
||
ob_start('return_null'); | ||
echo "You shouldn't see this.\n"; | ||
ob_end_flush(); | ||
|
||
echo 'done'; | ||
?> | ||
--EXPECTF-- | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
Bug #46903 (ob_start(): Special $chunk_size value of 1 is not honoured in HEAD) | ||
--FILE-- | ||
<?php | ||
function flushCounter($input) { | ||
static $counter=0; | ||
return '[' . ++$counter . "] $input \n"; | ||
} | ||
|
||
// This should set the buffer size to 4096 | ||
ob_start('flushCounter', 1); | ||
|
||
// Get the buffer size: | ||
$bufferInfo = ob_get_status(true); | ||
var_dump($bufferInfo[0]['chunk_size']); | ||
|
||
// If the buffer size is >1, these two chars should | ||
// come out as part of a single flush: | ||
echo "1"; | ||
echo "2"; | ||
?> | ||
--EXPECTF-- | ||
[1] int(4096) | ||
12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters