Req #80382 [NEW]: 返回值问题

From: Date: Thu, 19 Nov 2020 10:21:18 +0000
Subject: Req #80382 [NEW]: 返回值问题
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230453@lists.php.net to get a copy of this message
From: 982144218 at qq dot com Operating system: Win 10 PHP version: 7.2.34 Package: *Programming Data Structures Bug Type: Feature/Change Request Bug description:返回值问题 Description: ------------ public static function decodeIdentityToken(string $identityToken) : object { $publicKeyKid = JWT::getPublicKeyKid($identityToken); $publicKeyData = self::fetchPublicKey($publicKeyKid); $publicKey = $publicKeyData['publicKey']; $alg = $publicKeyData['alg']; $payload = JWT::decode($identityToken, $publicKey, [$alg]); return $payload; } Test script: --------------- 在7.1.9版本中return无法返回object(stdClass)类型,在7.3.9版本中可以使用 -- Edit bug report at https://bugs.php.net/bug.php?id=80382&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80382&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80382&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80382&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80382&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80382&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80382&r=support Expected behavior: https://bugs.php.net/fix.php?id=80382&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80382&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80382&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80382&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80382&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80382&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80382&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80382&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80382&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80382&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80382&r=mysqlcfg

« previous php.bugs (#230453) next »