Bug #2123: string trucated when passed to function
| From: | mattcoth at wt dot net | Date: | Sun, 22 Aug 1999 11:38:21 +0000 |
| Subject: | Bug #2123: string trucated when passed to function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10078@lists.php.net to get a copy of this message | ||
From: mattcoth@wt.net
Operating system: Linux 2.0.36
PHP version: 3.0.12
PHP Bug Type: Other
Bug description: string trucated when passed to function
<?
$testString = "test";
for ( $i=0; $i < 10; $i++ )
$testString .= chr( 160 ) //   = chr( 160 ), I use this to concat fields for display in
multi-select
$testString .= "end"
print $testString; // will print as it should here 'test end' but,
sendToFunction( $testString ); //pass to function
?>
<? // my application has the function in a separate include file
function sendToFunction( $string ) // I also tried passing by reference and got the same result.
{
print $string; // only prints 'test'
}
?>
Standard installation used, nothing special. Using Apache 1.3.4
Hope this is useful!