php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12841 ++, -- operators does not conert the type of variable.
Submitted: 2001-08-19 08:14 UTC Modified: 2001-09-05 05:08 UTC
From: sakauchi at yamame dot to Assigned: jeroen (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: FreeBSD 4.3
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: sakauchi at yamame dot to
New email:
PHP Version: OS:

 

 [2001-08-19 08:14 UTC] sakauchi at yamame dot to
% cat foo
#!/usr/local/bin/php -f
<?php
    $i = 0x7fffffff;
    print var_dump( $i );
    $j = $i+1;
    print var_dump( $j );
    $i++;
    print var_dump( $i );  
?>
% ./foo
int(2147483647)
float(2147483648)
int(-2147483648)

I quick hacked.

begin 644 zend_operators.c.diff.gz
M'XL(`#"H?#L``[6276^;,!2&K\VO..JD*BD?C8$L*2Q56BV=*J6IU`]I=XB"
M$ZP1B`QLZJK^]]J&)`2R=9N67`3I^#U^SWG\ZKH./TD2>NF*,#]/668$1LKH
M`CU$!=SXSX![8&*G/W0L#&:OAQ5555LMZ(I1N"@6@`>`+<<\<_K]4CT>@VY:
MVD=0^?\`QF,%/M`DB(N0P*<L#V/Z9$3G]6*0/Z](H[;T\TB4U&TIIDN:9U)7
M4QZ)R8SHJ%FJ#<L/Q5#8-DTQ%O]:&L9RLA<%4/:#YD$$G72%]7,Q2E>64>!G
M!*[OO>GM[(NCJ`@!T#ET`*3PNQ\7Q(CY!T8C$!KOYN(KB%XIW9&%4M9L='>4
MPIEKN.'GV\?+Z61SRDA>L(0;\_T869(D]^9%$N0T33JBE7MV*_&KF!LU;%35
ME>4G1OQO;GVSTLBIZ%A#[4S0L6T-VY*.;-OPH9F7%$O":.!E.:/)HL,__'ZM
MOA<O&3%)-#B.Y=&Q6+U;$45[H(H?F3-"JMO6JY2H_X[O(:&VN5:&*G9W!%M+
M,;2KZ'MWK#JV;X+:S]*VK?8,*]ORW0:X3/707*<:_==47\\.FNJ0_%.J=?W/
M4CVT)9U^K[>AL\O]%4C,&P6$=L(;R7XO[;/'Z;0[&E5X.34X/8$X319P<EH:
FWS_<>5=WD\F>FW^7_/?>X)#@?Y%[?9W[O:FO4WX#`"DBW7,&```X
`
end



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 10:34 UTC] sander@php.net
Please provide a plain diff, gzipped text is a bit hard to read without special specs ;)
 [2001-08-31 16:27 UTC] jeroen@php.net
Working on it...
 [2001-09-05 05:08 UTC] stas@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC