gnu/94640: php broken bit operator

Krzysztof Nakielski nakiel at hard-core.pl
Sat Mar 18 12:40:20 UTC 2006


>Number:         94640
>Category:       gnu
>Synopsis:       php broken bit operator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 18 12:40:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Krzysztof Nakielski
>Release:        FreeBSD 6.0-RELEASE-p5 i386
>Organization:
Krzysztof Nakielski
>Environment:
FreeBSD robol 6.0-RELEASE-p5 FreeBSD 6.0-RELEASE-p5 #0: Mon Mar  6 10:07:04 UTC 2006     admin at robol:/usr/obj/usr/src/sys/ROBOL  i386
>Description:
PHP 4 and 5 build with system gcc (gcc version 3.4.4 [FreeBSD] 20050518) or 3.4 from ports (gcc version 3.4.6 20060221 (prerelease) [FreeBSD]) returns wrong value
% php -r 'var_dump(-4653896912^1);'
int(-2147483647)
The same php source build with gcc295 or gcc32 from ports returns correct value:
% php -r 'var_dump(-4653896912^1);'
int(-358929615)
Problem doesn't exist on 5.x gcc 3.4.2
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list