php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch fix-binary-numbers-format-returns-int-or-float for Documentation problem Bug #55378

Patch version 2011-08-07 01:38 UTC

Return to Bug #55378 | Download this patch
Patch Revisions:

Developer: for-bugs@hnw.jp

*** php-5.4.0alpha3-orig/Zend/zend_language_scanner.l	2011-08-01 03:18:56.000000000 +0900
--- php-5.4.0alpha3/Zend/zend_language_scanner.l	2011-08-06 20:01:34.000000000 +0900
***************
*** 1469,1475 ****
  		--len;
  	}
  
! 	if (len < SIZEOF_LONG * 2) {
  		zendlval->value.lval = strtol(bin, NULL, 2);
  		zendlval->type = IS_LONG;
  		return T_LNUMBER;
--- 1469,1475 ----
  		--len;
  	}
  
! 	if (len <= SIZEOF_LONG * 8 - 1) {
  		zendlval->value.lval = strtol(bin, NULL, 2);
  		zendlval->type = IS_LONG;
  		return T_LNUMBER;
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 03:02:42 2014 UTC