@@ -1381,7 +1381,7 @@ public function getOptimizerInfo(): ?string {
1381
1381
return null ;
1382
1382
}
1383
1383
1384
- return " F " . $ this ->return ->refcount . '(" ' . $ this ->name ->__toString () . '", ' . $ type ->toOptimizerTypeMask () . "), \n" ;
1384
+ return "\t F " . $ this ->return ->refcount . '(" ' . $ this ->name ->__toString () . '", ' . $ type ->toOptimizerTypeMask () . "), \n" ;
1385
1385
}
1386
1386
1387
1387
public function discardInfoForOldPhpVersions (): void {
@@ -1918,23 +1918,23 @@ private function getGlobalConstDeclaration(EvaluatedValue $value, iterable $allC
1918
1918
$ flags .= " | CONST_DEPRECATED " ;
1919
1919
}
1920
1920
if ($ value ->type ->isNull ()) {
1921
- return " REGISTER_NULL_CONSTANT ( \"$ constName \", $ flags); \n" ;
1921
+ return "\t REGISTER_NULL_CONSTANT ( \"$ constName \", $ flags); \n" ;
1922
1922
}
1923
1923
1924
1924
if ($ value ->type ->isBool ()) {
1925
- return " REGISTER_BOOL_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: ($ constValue ? "true " : "false " )) . ", $ flags); \n" ;
1925
+ return "\t REGISTER_BOOL_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: ($ constValue ? "true " : "false " )) . ", $ flags); \n" ;
1926
1926
}
1927
1927
1928
1928
if ($ value ->type ->isInt ()) {
1929
- return " REGISTER_LONG_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: (int ) $ constValue ) . ", $ flags); \n" ;
1929
+ return "\t REGISTER_LONG_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: (int ) $ constValue ) . ", $ flags); \n" ;
1930
1930
}
1931
1931
1932
1932
if ($ value ->type ->isFloat ()) {
1933
- return " REGISTER_DOUBLE_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: (float ) $ constValue ) . ", $ flags); \n" ;
1933
+ return "\t REGISTER_DOUBLE_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: (float ) $ constValue ) . ", $ flags); \n" ;
1934
1934
}
1935
1935
1936
1936
if ($ value ->type ->isString ()) {
1937
- return " REGISTER_STRING_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: '" ' . addslashes ($ constValue ) . '" ' ) . ", $ flags); \n" ;
1937
+ return "\t REGISTER_STRING_CONSTANT ( \"$ constName \", " . ($ cConstValue ?: '" ' . addslashes ($ constValue ) . '" ' ) . ", $ flags); \n" ;
1938
1938
}
1939
1939
1940
1940
throw new Exception ("Unimplemented constant type " );}
@@ -1969,27 +1969,27 @@ private function getValueAssertion(EvaluatedValue $value): string
1969
1969
$ constValue = $ value ->value ;
1970
1970
1971
1971
if ($ value ->type ->isNull ()) {
1972
- return " ZEND_ASSERT ($ cName == NULL); \n" ;
1972
+ return "\t ZEND_ASSERT ($ cName == NULL); \n" ;
1973
1973
}
1974
1974
1975
1975
if ($ value ->type ->isBool ()) {
1976
1976
$ cValue = $ constValue ? "true " : "false " ;
1977
- return " ZEND_ASSERT ($ cName == $ cValue); \n" ;
1977
+ return "\t ZEND_ASSERT ($ cName == $ cValue); \n" ;
1978
1978
}
1979
1979
1980
1980
if ($ value ->type ->isInt ()) {
1981
1981
$ cValue = (int ) $ constValue ;
1982
- return " ZEND_ASSERT ($ cName == $ cValue); \n" ;
1982
+ return "\t ZEND_ASSERT ($ cName == $ cValue); \n" ;
1983
1983
}
1984
1984
1985
1985
if ($ value ->type ->isFloat ()) {
1986
1986
$ cValue = (float ) $ constValue ;
1987
- return " ZEND_ASSERT ($ cName == $ cValue); \n" ;
1987
+ return "\t ZEND_ASSERT ($ cName == $ cValue); \n" ;
1988
1988
}
1989
1989
1990
1990
if ($ value ->type ->isString ()) {
1991
1991
$ cValue = '" ' . addslashes ($ constValue ) . '" ' ;
1992
- return " ZEND_ASSERT (strcmp($ cName, $ cValue) == 0); \n" ;
1992
+ return "\t ZEND_ASSERT (strcmp($ cName, $ cValue) == 0); \n" ;
1993
1993
}
1994
1994
1995
1995
throw new Exception ("Unimplemented constant type " );
@@ -3777,7 +3777,7 @@ static function (FuncInfo $funcInfo) use (&$classEntriesWithSensitiveParams) {
3777
3777
$ functionTable = "CG(function_table) " ;
3778
3778
}
3779
3779
3780
- $ code .= " zend_mark_function_parameter_as_sensitive ($ functionTable, \"" . $ funcInfo ->name ->getNameForAttributes () . "\", $ index); \n" ;
3780
+ $ code .= "\t zend_mark_function_parameter_as_sensitive ($ functionTable, \"" . $ funcInfo ->name ->getNameForAttributes () . "\", $ index); \n" ;
3781
3781
}
3782
3782
3783
3783
return $ code ;
0 commit comments