ID: 27945 Updated by: [EMAIL PROTECTED] Reported By: nullzone at nullzone dot org -Status: Open +Status: Bogus Bug Type: Program Execution Operating System: Linux Debian-Sarge Kernel-2.6.5 PHP Version: 4.3.5 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. RTFM: http://php.net/passthru Previous Comments: ------------------------------------------------------------------------ [2004-04-10 16:42:13] nullzone at nullzone dot org Description: ------------ I have used passphru to execute a external code. I cannot work with the string that I get back from the passphru. I have tryed to use the 'explode' and 'split' functions to get a Array from the string that i got after a passthru. I always get a array with a member only (all the string). ------------------------------------------------------- Shell-script file: lala.bash ------------- #!/bin/bash echo [EMAIL PROTECTED] ------------- BAD php code: ------------- $array = explode ("@", pasthru("lala.bash") ); ------------- $array will have only a member, just "[EMAIL PROTECTED]" and not 2, one with lala, and other with lele All works with exec. Anyway think about a multi-line return from a execution. Reproduce code: --------------- $array = explode ("@", pasthru("lala.bash") ); Expected result: ---------------- Array( 0=> 'lala' , 1=> 'lele') Actual result: -------------- Array( 0=> '[EMAIL PROTECTED]') ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27945&edit=1
