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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mattcoth at wt dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 03:01:28 2025 UTC