php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2123 string trucated when passed to function
Submitted: 1999-08-22 07:38 UTC Modified: 2000-08-17 11:05 UTC
From: mattcoth at wt dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0.12 OS: Linux 2.0.36
Private report: No CVE-ID: None
 [1999-08-22 07:38 UTC] mattcoth at wt dot net
<?
$testString = "test";
for ( $i=0; $i < 10; $i++ )
   $testString .= chr( 160 ) // &nbsp = 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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 11:05 UTC] hholzgra@php.net
can't reproduce on 3.0.17dev or 4.0.2dev
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC