Skip to content

Commit

Permalink
fix(agent): Switches to nr_is_zval_valid_string()
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Nowacki <[email protected]>
  • Loading branch information
mfulb and lavarou authored Feb 15, 2024
1 parent 001a7ee commit bc34d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/fw_wordpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ void nr_wordpress_version() {
= zend_eval_string(func_string, &retval, "Get Wordpress Version");
// Add php package to transaction
if (SUCCESS == result) {
if (IS_STRING == Z_TYPE(retval)) {
if (nr_php_is_zval_valid_string(&retval)) {
char* version = Z_STRVAL(retval);
nr_txn_add_php_package(NRPRG(txn), "wordpress", version);
}
Expand Down

0 comments on commit bc34d6b

Please sign in to comment.