Bug #72436 [NEW]: PHP 5.6.11-1ubuntu3.4

From: Date: Thu, 16 Jun 2016 21:20:51 +0000
Subject: Bug #72436 [NEW]: PHP 5.6.11-1ubuntu3.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201684@lists.php.net to get a copy of this message
From: aydoganserdar at gmail dot com Operating system: Ubuntu 15.04 PHP version: 5.6.22 Package: Strings related Bug Type: Bug Bug description:PHP 5.6.11-1ubuntu3.4 Description: ------------ variable type error. Error: PHP Catchable fatal error: Argument 1 passed to app/aa::A() must be an instance of string, string given, called in A.php on line 10 and defined in A.php on line 17 System Info: PHP 5.6.11-1ubuntu3.4 (cli) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans Test script: --------------- Error scenario: namespace app/aa use string; class A { public function B() { $c = $this->getC('getC'); $d = $this->getC('getD'); } private function getC(string $c) { return $c; } private function getD(string $d) { return $d; } } Worked if delete function "getC": class A { public function B() { $c = $this->getC('getC'); $d = $this->getC('getD'); } private function getC(string $c) { return $c; } private function getD(string $d) { return $d; } } -- Edit bug report at https://bugs.php.net/bug.php?id=72436&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72436&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72436&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72436&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72436&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72436&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72436&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72436&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72436&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72436&r=support Expected behavior: https://bugs.php.net/fix.php?id=72436&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72436&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72436&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72436&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72436&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72436&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72436&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72436&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72436&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72436&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72436&r=mysqlcfg

« previous php.bugs (#201684) next »