php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64290 behavior change of converting to long
Submitted: 2013-02-24 05:59 UTC Modified: 2013-03-03 03:01 UTC
From: laruence@php.net Assigned: cataphract (profile)
Status: Closed Package: *General Issues
PHP Version: master-Git-2013-02-24 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2013-02-24 05:59 UTC] laruence@php.net
Description:
------------
ext/ereg/tests/split_variation_004.phpt failed (centOS 64 bits)

in 5.5  10E20 give the count of zif_split 0

but in master give the count 1864712049423024128 


something changed to convert_to_long from 5.5 to master

Test script:
---------------
diff is:

013+ array(5) {
013- array(1) {
015+   string(1) "1"
016+   [1]=>
017+   string(1) "2"
018+   [2]=>
019+   string(1) "3"
020+   [3]=>
021+   string(1) "4"
022+   [4]=>
023+   string(1) "5"
015-   string(9) "1 2 3 4 5"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-24 06:11 UTC] laruence@php.net
hmm, after I re-configure , php 5.5 start to failed either...
 [2013-02-24 06:14 UTC] laruence@php.net
-Assigned To: +Assigned To: glopes
 [2013-02-24 06:14 UTC] laruence@php.net
glopes could you please look at this?  should due the recently changes you did to 
zend_operators.h 

if the change is okey, please correct the test script. 

thanks
 [2013-02-24 06:31 UTC] laruence@php.net
-Summary: ext/ereg/tests/split_variation_004.phpt failed +Summary: behavior change of converting to long
 [2013-02-24 06:31 UTC] laruence@php.net
a more simple example:

<?php
  var_dump(intval(10E20));
?>

php 5.3, 5.4, output int(0);

php 5.5,  master , output: int(3875820019684212736)
 [2013-02-24 06:38 UTC] laruence@php.net
hmm, wrong assign
 [2013-02-24 06:38 UTC] laruence@php.net
-Assigned To: glopes +Assigned To: cataphract
 [2013-03-03 03:00 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2013-03-03 03:00 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c
Log: Fixed bug #64290 (behavior change of converting to long)
 [2013-03-03 03:00 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c
Log: Fixed bug #64290 (behavior change of converting to long)
 [2013-03-03 03:01 UTC] laruence@php.net
okey, I commit the fix for this test. remove the 10e20 one
 [2013-11-17 09:31 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c
Log: Fixed bug #64290 (behavior change of converting to long)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 23:01:29 2025 UTC