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.
Summary: | Parameters list cannot be invoked after array | ||
---|---|---|---|
Product: | php | Reporter: | Raazy |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fzamboj |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Raazy
2010-06-28 14:57:28 UTC
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. 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 |