Commit 55c63e4
Revert AssignHandler changes for bug #14473
The fix for the false positive logicalOr.leftAlwaysTrue on repeated
builtin function calls does not require code changes to AssignHandler.
The root cause is that TypeSpecifier already returns empty SpecifiedTypes
for functions with hasSideEffects()->yes() (TypeSpecifier.php line 2246),
which prevents conditional expressions from being created in
AssignHandler. The proper fix is to mark mysqli_connect in the function
metadata, which is done in the next commit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 38f6006 commit 55c63e4
1 file changed
Lines changed: 2 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
863 | 861 | | |
864 | 862 | | |
865 | 863 | | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | 864 | | |
871 | 865 | | |
872 | 866 | | |
| 867 | + | |
873 | 868 | | |
874 | 869 | | |
875 | 870 | | |
| |||
905 | 900 | | |
906 | 901 | | |
907 | 902 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | 903 | | |
913 | 904 | | |
914 | 905 | | |
| 906 | + | |
915 | 907 | | |
916 | 908 | | |
917 | 909 | | |
| |||
932 | 924 | | |
933 | 925 | | |
934 | 926 | | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | 927 | | |
951 | 928 | | |
952 | 929 | | |
| |||
0 commit comments