iliaa Fri, 27 Aug 2010 19:43:08 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=302851
Log: Fixed a compiler warning Changed paths: U php/php-src/branches/PHP_5_3/ext/session/session.c U php/php-src/trunk/ext/session/session.c Modified: php/php-src/branches/PHP_5_3/ext/session/session.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/session.c 2010-08-27 12:45:36 UTC (rev 302850) +++ php/php-src/branches/PHP_5_3/ext/session/session.c 2010-08-27 19:43:08 UTC (rev 302851) @@ -403,9 +403,8 @@ efree(buf); if (PS(entropy_length) > 0) { - unsigned char rbuf[2048]; - #ifdef PHP_WIN32 + unsigned char rbuf[2048]; size_t toread = PS(entropy_length); if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){ Modified: php/php-src/trunk/ext/session/session.c =================================================================== --- php/php-src/trunk/ext/session/session.c 2010-08-27 12:45:36 UTC (rev 302850) +++ php/php-src/trunk/ext/session/session.c 2010-08-27 19:43:08 UTC (rev 302851) @@ -329,9 +329,8 @@ efree(buf); if (PS(entropy_length) > 0) { - unsigned char rbuf[2048]; - #ifdef PHP_WIN32 + unsigned char rbuf[2048]; size_t toread = PS(entropy_length); if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php