com php-src: Different error message if makedev check fails: ext/standard/random.c

From: Date: Tue, 29 Sep 2015 07:14:29 +0000
Subject: com php-src: Different error message if makedev check fails: ext/standard/random.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89200@lists.php.net to get a copy of this message
Commit: 46aa628605341d879a685fe683114f8b22d0861f Author: Scott <scott@paragonie.com> Mon, 21 Sep 2015 11:51:16 -0400 Committer: Anatol Belski <ab@php.net> Tue, 29 Sep 2015 09:14:29 +0200 Parents: 6554f721f770c99037f07d465a7d610568576ce4 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=46aa628605341d879a685fe683114f8b22d0861f Log: Different error message if makedev check fails Changed paths: M ext/standard/random.c Diff: diff --git a/ext/standard/random.c b/ext/standard/random.c index 6bee9d3..cad4d0a 100644 --- a/ext/standard/random.c +++ b/ext/standard/random.c @@ -149,7 +149,7 @@ static int php_random_bytes(void *bytes, size_t size) // Make sure that /dev/urandom is the proper urandom device on Linux if (st.st_rdev != makedev(1, 9)) { close(fd); - zend_throw_exception(zend_ce_exception, "Error reading from source device", 0); + zend_throw_exception(zend_ce_exception, "Entropy source device is invalid", 0); return FAILURE; } #endif

« previous php.cvs (#89200) next »