Skip to content

Conversation

@devnexen
Copy link
Member

No description provided.

@devnexen
Copy link
Member Author

devnexen commented Oct 18, 2025

not sure about callback registering parts (ie.zip_register_ * _with_state) if we should call zend_release_fcall_info_cache on failure especially it happens only during system OOM.. wdyt @Girgias ?

@Girgias
Copy link
Member

Girgias commented Oct 19, 2025

not sure about callback registering parts (ie.zip_register_ * _with_state) if we should call zend_release_fcall_info_cache on failure especially it happens only during system OOM.. wdyt @Girgias ?

zend_release_fcall_info_cache is used to release the trampoline if the FCC has one, so the best way to check if you need it is to run tests with a method name that does not exist on a class that implements __call()

@devnexen
Copy link
Member Author

Ok. if that s the case that ought to be a separate bug fix.

@devnexen devnexen marked this pull request as ready for review October 19, 2025 21:21
@devnexen devnexen requested a review from nielsdos October 25, 2025 20:59
CWD_STATE_FREE(new_state.cwd);
return 0;
efree(new_state.cwd);
return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be false.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

}
/* }}} */

# define CWD_STATE_ALLOC(l) emalloc(l)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think such abstraction macros are necessarily bad, but making the code directly use emalloc/efree seems fine too.

size_t n;
int ret;

char *pattern = ZSTR_VAL(spattern);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be a const pointer, no?

case IS_LONG:
break;
case IS_STRING:
if (Z_TYPE_P(zval_file) == IS_STRING) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm looking at the commit message. Indeed, it is weird that IS_LONG was accepted.

@devnexen devnexen closed this in 6c14020 Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants