« first day (2612 days earlier)      last day (2329 days later) » 
00:00 - 23:0023:00 - 00:00

11:04 PM
@Dave it sounds like you have an output filter on.....that is both duplicating the data, and also converted invalid utf8 chars into EFBFBD
 
@Trowski Can we somehow show the process state if the context emits an error?
 
@Danacki've gotten as far as there is a bad encoding issue going on. where should I look into for filters?
the strings I get from a curl request to the function have a lot of this: "13333����NnuuU������"
 
@Dave I think first in your webserver settings. I'm guessing you use apache? there could be something in there.
 
@kelunik Usually there's an error because the process just exited without sending anything to the parent. But depending on the situation there might be things we could do to help with debugging.
 
And also, what framework are you using for handling requests? Or using something like wordpress?
 
11:10 PM
@Trowski Why does Channel not implement InputStream / OutputStream?
@Trowski e.g the exit code would be good
 
@Danack no framework, just a simple class on the backend that processes a file and then sends it for download. The zip created is valid and not currupt
just the output from fileread
 
setting the content header ` header('Content-Type: application/octet-stream');` might help.
 
that's already done
full function:
 
Wes
hey dan
 
11:22 PM
hey wes
 
@kelunik Channel sends/receives serializable PHP values, not just bytes.
 
Ah, fine then.
 
@Dave things you could try, repeatedly calling ob_end_clean() while ob_get_level() > 1.
ii) you almost certainly don't want an ob_flush in there to begin with.
as only bytes from the file should be reaching the user.
iii) seeing what echo "\xc3\x28"; gives.....
 
tried the first already
ill give the others a try
 
@Dave Your content length header shouldn't use trim()
And the content type header should be application/octet-stream (instead of with underscore)
 
11:35 PM
sprintf %u results in 0 for numbers with more digits than PHP_INT_MAX – #75664
 
11:55 PM
ok
so I know im supposed to be getting something like this:

F\90\FA,\B0\8E\9A\B3....
but instead im getting:

F��,����`�....
 
wait - how do you know you're getting 'F��' ?
 
this is what readfile outputs, even from the terminal
 
aka what does that mean, you're 'getting that' ?
(in expectation of probable answer, what computer are you on? Mac, windows etc?)
 
linux
hows that expectation ^^
 
The following is a comparison of notable hex editors. == General == == Features == == See also == Comparison of HTML editors Comparison of integrated development environments Comparison of text editors Comparison of word processors == Notes == ao: ANSI is the Windows character set, OEM is the DOS character set. Both are based on ASCII. == References == == External links == Comprehensive (but old) comparison of hex editors (Windows only)...
You almost certainly want to start using a hexeditor to inspect this stuff.
> F\90\FA,\B0\8E\9A\B3....
but instead im getting:

F��,����`�....
 
11:59 PM
haha, thanks but im good
Ive already told you
that ive done hex dumps of both files
 
00:00 - 23:0023:00 - 00:00

« first day (2612 days earlier)      last day (2329 days later) »