This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
---------------------------------------------------------------------------------------- Product Version = NetBeans IDE 6.9 (Build 201006101454) Operating System = Windows Vista version 6.0 running on x86 Java; VM; Vendor = 1.6.0_17 Runtime = Java HotSpot(TM) Client VM 14.3-b01 ---------------------------------------------------------------------------------------- When you passing an array as an parameter, invocation the rest of parameters declared after such parameter does not work. How to reproduce: <?php function foo($a, $b, array $c, $d, $e) { //nothing } //this does not work after third parameter: foo("a", "b", array("c"), "d", "e"); //list of parameters does not work after third parameter //this works as expeceted $c = array("c"); foo("a", "b", $c, "d", "e"); // if an array is passed as simple variable, it works ?> This also apply if function i a method within class. Thanks, Raazy
It also doesn't work after you use other function call within parenthesis: $color = imagecolorallocatealpha($image, 1, mt_rand(0, $o_contrast), mt_rand(0, $o_contrast), self::$object_alpha); Parameter list of imagecolorallocatealpha works until 3rd parameter, after it fails. It seems it is caused by other parenthesis within function parenthesis: str_replace( ($expression==1?$one:$two), $replace, $subject); //after 1st parameter fails but this: str_replace( "search", (int)$replace, $subject); is working. R.
http://hg.netbeans.org/web-main/rev/b9342ce4eb45
Integrated into 'main-golden', will be available in build *201008170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b9342ce4eb45 User: Radek Matous <rmatous@netbeans.org> Log: #188160 - Parameters list cannot be invoked after array
Product Version: NetBeans IDE Dev (Build 100817-0818e024a845) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 verified
I does not work again Product Version: NetBeans IDE Dev (Build 2011-01-13_03-03-33 ) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows Vista version 6.1 running on x86; Cp1250; cs_CZ (nb)
Problem exists also in this: Product Version: NetBeans IDE Dev (Build 2011-01-28_09-04-45 ) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows Vista version 6.1 running on x86; Cp1250; cs_CZ (nb)
I just discovered, that this error is related to member functions within the class. Try this piece of code <?php class Foo { public static function a($a,$b,$c) { } private static function b($a,$b,$c) { } public function c($a,$b,$c) { } private function d($a,$b,$c) { } protected function e($a,$b,$c) { } function __construct() { $b = " a "; self::a( $b, trim($b), $b);//after 2nd parameter fails self::b( $b, trim($b), $b);//after 2nd parameter fails $this->c($b, trim($b), $b);//after 2nd parameter fails $this->d($b, trim($b), $b);//after 2nd parameter fails $this->e($b, trim($b), $b);//after 2nd parameter fails } } //but plain function are OK function a($a,$b,$c) { } a("", trim(' '), '');//after 2nd parameter OK ?>
Should be fixed now in web-main.
Integrated into 'main-golden', will be available in build *201102190501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d94c82e4f2b3 User: Petr Pisl <ppisl@netbeans.org> Log: #188160 - Parameters list cannot be invoked after array