Remove code comments - #23285
Conversation
This might have been an issue on older MSVC but presumably it's no longer the case as zend_mark_internal_attribute has not had a return for the past 4 years and nobody complained.
|
To be honest, I think we could just get rid of those reimplementation functions? N.B.: |
Ok, well, I don't know anything about FPM. I was just trying to fix a superficial problem. But if these functions should be removed, can you open a separate PR and I will drop the commit from my PR? |
Just did so. Also looking at other instances of this, and I think I found a similar "fun" comment related to these functions already... #if !defined(HAVE_SETENV) || !defined(HAVE_UNSETENV)
/* if cgi, or fastcgi and not found in fcgi env
check the regular environment
this leaks, but it's only cgi anyway, we'll fix
it for 5.0
*/
len = name_len + (value ? strlen(value) : 0) + sizeof("=") + 2;
buf = (char *) malloc(len);
if (buf == NULL) {
return getenv(name);
}
#endif |
Taken from the article https://helgesver.re/articles/hidden-comments-in-php-src