Bug #78391 [Opn]: php-7.4.0beta2 ... openssl.c:6982: zif_openssl_random_pseudo_bytes: core dumped

From: Date: Fri, 09 Aug 2019 12:53:47 +0000
Subject: Bug #78391 [Opn]: php-7.4.0beta2 ... openssl.c:6982: zif_openssl_random_pseudo_bytes: core dumped
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222157@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78391&edit=1 ID: 78391 User updated by: ildar dot aim at gmail dot com Reported by: ildar dot aim at gmail dot com -Summary: php-7.4.0beta2/ext/openssl/openssl.c:6982: zif_openssl_random_pseudo_bytes: Ass +Summary: php-7.4.0beta2 ... openssl.c:6982: zif_openssl_random_pseudo_bytes: core dumped Status: Open Type: Bug Package: OpenSSL related Operating System: Linux x86_64 PHP Version: 7.4.0beta2 Block user comment: N Private report: N New Comment: changed subject Previous Comments: ------------------------------------------------------------------------ [2019-08-09 12:51:44] ildar dot aim at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=78391&edit=1

« previous php.bugs (#222157) next »