~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/session/session.c

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
   +----------------------------------------------------------------------+
18
18
 */
19
19
 
20
 
/* $Id: session.c 300296 2010-06-08 22:30:16Z pajoye $ */
 
20
/* $Id: session.c 305034 2010-11-02 18:34:56Z felipe $ */
21
21
 
22
22
#ifdef HAVE_CONFIG_H
23
23
#include "config.h"
403
403
        efree(buf);
404
404
 
405
405
        if (PS(entropy_length) > 0) {
 
406
#ifdef PHP_WIN32
406
407
                unsigned char rbuf[2048];
407
 
 
408
 
#ifdef PHP_WIN32
409
408
                size_t toread = PS(entropy_length);
410
409
 
411
410
                if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){
2283
2282
 
2284
2283
static const zend_module_dep session_deps[] = { /* {{{ */
2285
2284
        ZEND_MOD_OPTIONAL("hash")
 
2285
        ZEND_MOD_REQUIRED("spl")
2286
2286
        {NULL, NULL, NULL}
2287
2287
};
2288
2288
/* }}} */