We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In ext/zend_test/test.stub.php I added
ext/zend_test/test.stub.php
/** @var string */ const TEMP_TEST = __FILE__;
and then ran php build/gen_stub.php ext/zend_test/test.stub.php
php build/gen_stub.php ext/zend_test/test.stub.php
Output:
root@228aa53d048d:/usr/src/php# php build/gen_stub.php ext/zend_test/test.stub.php Fatal error: Uncaught Error: Using $this when not in object context in /usr/src/php/build/gen_stub.php:2173 Stack trace: #0 /usr/src/php/build/PHP-Parser-5.3.1/lib/PhpParser/ConstExprEvaluator.php(148): EvaluatedValue::{closure}(Object(PhpParser\Node\Scalar\MagicConst\File)) #1 /usr/src/php/build/PHP-Parser-5.3.1/lib/PhpParser/ConstExprEvaluator.php(102): PhpParser\ConstExprEvaluator->evaluate(Object(PhpParser\Node\Scalar\MagicConst\File)) #2 /usr/src/php/build/gen_stub.php(2209): PhpParser\ConstExprEvaluator->evaluateDirectly(Object(PhpParser\Node\Scalar\MagicConst\File)) #3 /usr/src/php/build/gen_stub.php(2615): EvaluatedValue::createFromExpression(Object(PhpParser\Node\Scalar\MagicConst\File), Object(SimpleType), NULL, Array) #4 /usr/src/php/build/gen_stub.php(5204): ConstInfo->getDeclaration(Array) #5 /usr/src/php/build/gen_stub.php(125): generateArgInfoCode('test', Object(FileInfo), Array, 'e496fa1faa84677...') #6 /usr/src/php/build/gen_stub.php(6127): processStubFile('ext/zend_test/t...', Object(Context)) #7 {main} thrown in /usr/src/php/build/gen_stub.php on line 2173
Cause:
php-src/build/gen_stub.php
Lines 2119 to 2125 in 6329248
Lines 2169 to 2174 in 6329248
getVariableTypeName() is only something that exists on VariableLike instances so I'm not even sure what the correct replacement should be
getVariableTypeName()
VariableLike
6329248
No response
The text was updated successfully, but these errors were encountered:
CC @kocsismate - it looks like this has been an issue since 8.2
Lines 1588 to 1597 in e144c58
Given that the bug is in part of the build system, should it be fixed on 8.2? Just 8.3+? Just master?
Sorry, something went wrong.
Given that this hasn't been a problem so far, it's somewhat feature request-ish. I'd say master (unless an earlier branch makes merges easier).
No branches or pull requests
Description
In
ext/zend_test/test.stub.php
I addedand then ran
php build/gen_stub.php ext/zend_test/test.stub.php
Output:
Cause:
php-src/build/gen_stub.php
Lines 2119 to 2125 in 6329248
... later in that same static function ...
php-src/build/gen_stub.php
Lines 2169 to 2174 in 6329248
getVariableTypeName()
is only something that exists onVariableLike
instances so I'm not even sure what the correct replacement should bePHP Version
6329248
Operating System
No response
The text was updated successfully, but these errors were encountered: