Bug #78391 [NEW]: php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Ass

From: Date: Fri, 09 Aug 2019 12:51:44 +0000
Subject: Bug #78391 [NEW]: php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Ass
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222156@lists.php.net to get a copy of this message
From: ildar dot aim at gmail dot com Operating system: Linux x86_64 PHP version: 7.4.0beta2 Package: OpenSSL related Bug Type: Bug Bug description:php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Ass Description: ------------ aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r '$isStrongCrypto=false;print_r(openssl_random_pseudo_bytes(16, $isStrongCrypto));die;' php: /opt/phpfarm_new/src/php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r Test script: --------------- aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r '$isStrongCrypto=false;$h = openssl_random_pseudo_bytes(16, $isStrongCrypto);die;' php: /opt/phpfarm_new/src/php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r aim-server[~/tmp]$ /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -v PHP 7.4.0beta2 (cli) (built: Aug 7 2019 16:34:24) ( NTS DEBUG ) Copyright (c) The PHP Group Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies with Zend OPcache v7.4.0beta2, Copyright (c), by Zend Technologies aim-server[~/tmp]$ openssl version OpenSSL 1.1.1c 28 May 2019 aim-server[~/tmp]$ Expected result: ---------------- generated string Actual result: -------------- zif_openssl_random_pseudo_bytes: Assertion `(zval_get_type(&(*(zstrong_result_returned))) == 10)' failed. zsh: abort (core dumped) /opt/phpfarm_new/inst/php-7.4.0beta2/bin/php -r -- Edit bug report at https://bugs.php.net/bug.php?id=78391&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78391&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78391&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78391&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78391&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78391&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78391&r=support Expected behavior: https://bugs.php.net/fix.php?id=78391&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78391&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78391&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78391&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78391&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78391&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78391&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78391&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78391&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78391&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78391&r=mysqlcfg

« previous php.bugs (#222156) next »