php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43820 bad function argumentes parsing
Submitted: 2008-01-11 15:45 UTC Modified: 2008-01-12 10:45 UTC
From: cabrerafacundo at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2CVS-2008-01-11 (CVS) OS: linux
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: cabrerafacundo at gmail dot com
New email:
PHP Version: OS:

 

 [2008-01-11 15:45 UTC] cabrerafacundo at gmail dot com
Description:
------------
bad parsing of parameters

Reproduce code:
---------------
#! /usr/bin/php
<?php

// bug.php
exec( './hola.sh' , $output1 = array() );

print_r($output1);

exec( './hola.sh' , $output2 );

print_r($output2);

?>

#! /bin/sh

echo hola


Expected result:
----------------
both must be return 
Array
(
    [0] => hola
)


Actual result:
--------------
Array
(
)
Array
(
    [0] => hola
)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-12 10:45 UTC] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Turn on E_STRICT error reporting
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 20:01:35 2025 UTC