php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52236 Function Call Request
Submitted: 2010-07-02 15:47 UTC Modified: 2011-01-01 00:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: halloanjedendenichkenne at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.2 OS: Mac OS X 10.6.4
Private report: No CVE-ID: None
 [2010-07-02 15:47 UTC] halloanjedendenichkenne at gmail dot com
Description:
------------
It would be useful if you could leave out optional Parameters when calling 
Functions, but specify others that come after that certain Parameter. I suppose 
the Script will explain it a little better.

Test script:
---------------
<?php

  abc("...", , 123);
  abc("...", 2, , chr(10));

  //Like in list, where you can leave out certain Elements
  list($a, $b, , $d) = explode(",", "a,b,c,d");

  function abc($d, $e = false, $f = 123, $g = PHP_EOF) {
    return "something";
  }

?>

Expected result:
----------------
.

Actual result:
--------------
.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 00:01 UTC] jani@php.net
-Status: Open +Status: Bogus
 [2011-01-01 00:01 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Search before submitting same bogus and declined request over and over..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC