[PHP-DEV] php_crypt() problems

2017-07-15 Thread Sara Golemon
While exploring password_*() functions, I found myself in php_crypt() and noticed a use-after-free in the PHP_USE_PHP_CRYPT_R==0 case. char *crypt_res; { #if something struct crypt_data buffer; #else CRYPTD buffer; #endif crypt_res = crypt_r(password, salt, &buffer); } return zend_string_in

Re: [PHP-DEV] Allow else after loop structures for,foreach and while?

2017-07-15 Thread Wes
And also https://wiki.php.net/rfc/loop_or

Re: [PHP-DEV] Allow else after loop structures for,foreach and while?

2017-07-15 Thread Wes
Hi, please have a look at https://wiki.php.net/rfc/loop_else first. It has been discussed already.

Re: [PHP-DEV] Allow else after loop structures for,foreach and while?

2017-07-15 Thread Andreas Treichel
Hi Michael, Allow else blocks to follow iteration blocks. The else block is executed if no iteration occurs for any reason. I also thought it would been a good idea, but most of the time i need a wrapper in the output like this: if($items) { echo ''; foreach($items as $it