[wp-trac] [WordPress Trac] #34409: random_bytes() prevents me to log in if PHP is 5.3.5

WordPress Trac noreply at wordpress.org
Fri Oct 23 08:12:12 UTC 2015


#34409: random_bytes() prevents me to log in if PHP is 5.3.5
------------------------------------+-----------------------------
 Reporter:  imath                   |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 Since r35365, when i try to log in WordPress on a local WAMP stack using
 PHP 5.3.5 i get this fatal error :

 {{{
 Fatal error: Maximum execution time of 60 seconds exceeded in
 D:\path_to_wp\wp-includes\random_compat\random_bytes_openssl.php on line
 64
 }}}

 xdebug is giving me these pieces of information :
 {{{
 Call Stack
 #       Time    Memory  Function        Location
 1       0.0072  689848  {main}( )       ..\wp-login.php:0
 2       0.3460  25607752        wp_signon( )    ..\wp-login.php:776
 3       0.3611  25695560        wp_set_auth_cookie( )   ..\user-
 functions.php:94
 4       0.3611  25696040        WP_Session_Tokens->create( )
 ..\pluggable.php:921
 5       0.3611  25696648        wp_generate_password( ) ..\session.php:147
 6       59.2952 25697008        wp_rand( )      ..\pluggable.php:2138
 7       59.2952 25697168        random_int( )   ..\pluggable.php:2185
 8       59.2953 25697392        random_bytes( ) ..\random_int.php:148
 }}}

 When i switch to PHP 5.4.9 i have no problem ??

 As WordPress PHP required version is 5.2.4, i thought i should add this
 ticket. Maybe it's relative to my WAMP Stack, but just in case...

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34409>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list