Opened 13 years ago

Last modified 13 years ago

#3989 new defect

ioGetStdoutBufferString() not binary-enabled

Reported by: jfgigand Owned by: aboudreault
Priority: normal Milestone: 6.0.2 release
Component: MapScript-PHP Version: 6.0
Severity: normal Keywords:
Cc: dmorissette, sdlime

Description

The ioGetStdoutBufferString() PHP/MapScript function does not work with binary data, since RETURN_STRING() assumes a \0 byte for the end.

Attached is a patch replacing it with RETURN_STRINGL() which takes a length argument instead of relying on strlen() (tested successfully on a private project).

Attachments (1)

mapserver_fix_php_ms_ioGetStdoutBufferString.diff (385 bytes ) - added by jfgigand 13 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by dmorissette, 13 years ago

Cc: dmorissette sdlime added
Owner: changed from sdlime to aboudreault

comment:2 by dmorissette, 13 years ago

Component: MapServer C LibraryMapScript-PHP
Note: See TracTickets for help on using tickets.