-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent): ensure package version retrieval does not error out (#833)
This PR does the following: - For Drupal the `Drupal::VERSION` class constant is retrieved using zend calls from C and does not require using `zend_eval_string`. The retrieval is robust against the this constant not being defined. - For Wordpress, the presence of the `wp_version` value in `$GLOBAL` is verified before trying to retrieve the value. --------- Co-authored-by: Michael Fulbright <[email protected]> Co-authored-by: Michal Nowacki <[email protected]> Co-authored-by: Michael Fulbright <[email protected]>
- Loading branch information
1 parent
4746cca
commit c77a3b5
Showing
2 changed files
with
48 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters