You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original logic in oikai_pseudo_reflect() would use Reflection function logic against the actual class, method or function if it was already loaded
We also tested if docblock comments were actually available. WP Engine's code stripped them.
When parsing an updated shared library file this logic led to a Fatal error due to differences between the actual file being parsed and the file that had been loaded. In our case the file we were parsing was libs/bobbfunc.php ( part of oik ) which is shared by oik-bwtrace. The version loaded by oik-bwtrace was older so the start and end line numbers for the functions were different.
Solution
In addition to testing if docblock comments are available, check if shared libraries have been loaded.
If they have then don't trust the code that's already been loaded. It may not match the code we want to parse.
The text was updated successfully, but these errors were encountered:
The original logic in oikai_pseudo_reflect() would use Reflection function logic against the actual class, method or function if it was already loaded
We also tested if docblock comments were actually available. WP Engine's code stripped them.
When parsing an updated shared library file this logic led to a Fatal error due to differences between the actual file being parsed and the file that had been loaded. In our case the file we were parsing was libs/bobbfunc.php ( part of oik ) which is shared by oik-bwtrace. The version loaded by oik-bwtrace was older so the start and end line numbers for the functions were different.
Solution
In addition to testing if docblock comments are available, check if shared libraries have been loaded.
If they have then don't trust the code that's already been loaded. It may not match the code we want to parse.
The text was updated successfully, but these errors were encountered: