From b1ec7badeca0e687c185df5649e7f60850f41f13 Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 25 Mar 2010 09:58:17 +0100 Subject: Fix error case return values of random number generator for PHP 5.2.x, too --- execute.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'execute.c') diff --git a/execute.c b/execute.c index 304e08a..4c5d3c1 100644 --- a/execute.c +++ b/execute.c @@ -1409,9 +1409,6 @@ static int ih_srand(IH_HANDLER_PARAMS) long seed; if (zend_parse_parameters(argc TSRMLS_CC, "|l", &seed) == FAILURE || SUHOSIN_G(srand_ignore)) { -#ifndef PHP_ATLEAST_5_3 - RETVAL_FALSE; -#endif return (1); } @@ -1420,9 +1417,6 @@ static int ih_srand(IH_HANDLER_PARAMS) } else { suhosin_srand(seed TSRMLS_CC); } -#ifndef PHP_ATLEAST_5_3 - RETVAL_TRUE; -#endif return (1); } @@ -1432,9 +1426,6 @@ static int ih_mt_srand(IH_HANDLER_PARAMS) long seed; if (zend_parse_parameters(argc TSRMLS_CC, "|l", &seed) == FAILURE || SUHOSIN_G(mt_srand_ignore)) { -#ifndef PHP_ATLEAST_5_3 - RETVAL_FALSE; -#endif return (1); } @@ -1443,9 +1434,6 @@ static int ih_mt_srand(IH_HANDLER_PARAMS) } else { suhosin_mt_srand(seed TSRMLS_CC); } -#ifndef PHP_ATLEAST_5_3 - RETVAL_TRUE; -#endif return (1); } -- cgit v1.3