php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20618 juggling with type juggling
Submitted: 2002-11-25 06:10 UTC Modified: 2003-06-29 20:44 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: harald dot radi at nme dot at Assigned: derick (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4CVS-2002-11-25 (dev) OS: any
Private report: No CVE-ID: None
 [2002-11-25 06:10 UTC] harald dot radi at nme dot at
i offer a beer for the one that correctly guesses the output of the following script:

<?php
var_dump(256 + "0x100" + (int)("0x100") + (int)("0x100" + 256));
?>


be honest, don't run it.

harald

ps: derick is excluded, but he doesn't like beer anyways :) and he is trying to fix this - thanks.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-25 06:12 UTC] jan@php.net
Not enough beer was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more beer, feel free to send it
to the developers and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-11-25 06:13 UTC] jan@php.net
Not enough beer was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more beer, feel free to send it
to the developers and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-11-25 11:09 UTC] harald dot radi at nme dot at
hey, this was a serious bug report :)

(int) "0x200" is 0

while

(int) ("0x200" + 0) is 512

i'm setting it to closed as derick located that 'zend magic' caused by the radix beeing forced to be 10 in zend_operators.c line 216.
 [2002-11-25 11:43 UTC] derick@php.net
It's not in CVS, and thus not closed :-)
 [2003-06-29 20:43 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 21:01:29 2024 UTC