]> granicus.if.org Git - php/commit
Fix an undefined class error running gen_stub in php8
authorTyson Andre <tysonandre775@hotmail.com>
Sat, 11 Apr 2020 20:52:47 +0000 (16:52 -0400)
committerTyson Andre <tysonandre775@hotmail.com>
Sat, 11 Apr 2020 21:17:28 +0000 (17:17 -0400)
commit047d8147047b319feca477ff4ba28ca5a2426a05
tree5cfe9a68c5c1a2646f10791073cbf341d72e28df
parent7b2a8a6dda165ccba9e1366d9f690b75ee4acfe9
Fix an undefined class error running gen_stub in php8

For whatever reason, php 8 would not have loaded the subsequent classes when
running `php build/gen_stub.php path/to/filename.php`.
I assume it didn't load the classes immediately because there's a possibility
the code before it would throw.
(Probably because __toString was added recently and prevents early binding)

Also, fix a typo

Closes GH-5369
build/Makefile.global
build/gen_stub.php