#20618 [Csd->Asn]: juggling with type juggling

From: Date: Mon, 25 Nov 2002 17:43:09 +0000
Subject: #20618 [Csd->Asn]: juggling with type juggling
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25800@lists.php.net to get a copy of this message
ID: 20618 Updated by: derick@php.net Reported By: harald.radi@nme.at -Status: Closed +Status: Assigned Bug Type: Scripting Engine problem Operating System: any PHP Version: 4CVS-2002-11-25 (dev) -Assigned To: +Assigned To: derick New Comment: It's not in CVS, and thus not closed :-) Previous Comments: ------------------------------------------------------------------------ [2002-11-25 11:09:55] harald.radi@nme.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 06:13:03] 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:12:57] 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:10:24] harald.radi@nme.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20618&edit=1

« previous php.bugs (#25800) next »