php problem with "echo"

nulldef

New member
Joined
Dec 10, 2005
Messages
3
hey all,
i have a php script in which i take a certain chars buffer and 'echo' it as it is to the caller of the script.

the problem is that it actually prints only the first chars, until it reaches a 0x00 char in the middle of the buffer and stops right there.
i consider this as a problem because i've checked it on other apache boxes and there it prints all the buffer, including the unregular chars.

10x.
 
ehmmm... I guess "oops" will be suitable here. maybe i have confused this forum with the one of the host's support... :|

but if i have already asked, maybe some1 here knows what i'm talkin about and can offer a solution?..:rolleyes:
 
You would probably have better luck with a php mailing list or the ##php channel on irc.freenode.net (irc).

Attach the small snippet of code for folks to view here, somebody might see something.

Also, try comparing the php installation on the server that works with the one that doesn't. For example, are they running the same version? What versions?
 
an example for a working box is
Apache/2.0.54, PHP/4.4.0-4
the server with the problem tells me:
Server: Apache
X-Powered-By: PHP/4.3.11

about the snippet of the code- i dont find it useful, i've mentioned all the relevant information already:
i have some $var, which contain some buffer of bytes (i know for sure it actually contains the whole buffer due to strlan and stuff).
but when i echo $var, it doesnt print all the buffer. i noticed that it prints until it reaches 0x00 char.
10x
 
Try upgrading to php 4.4
It's possible some of the functions used in your script are not supported in 4.3, which is why I wanted you to attach the code incase somebody noticed something that can not be determined based on such a description.

The folks in ##php would either know the solution or ask you to paste the code for review as well ;)
 
Back
Top