[PHP-DEV] Bug #11902: Defined constants carry over to next script call

2001-07-05 Thread d . peereboom-voller

From: [EMAIL PROTECTED]
Operating system: SunOS oradev 5.7 Generic_106541-07 sun4u sparc 
SUNW,UltraSPARC-IIi-Engine
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  Defined constants carry over to next script call

if(defined(LINK_ID))
  print(ERROR);
$link_id = OCILogon(.);
define(LINK_ID , $link_id);

If I run this script it will print ERROR on the second call (refresh) but not the 3rd, 
then again on the 4th.
It seems not to like me assign the resource id in this form. If I use 
define(LINK_ID , $link_id);
it works and I can use the constant but this is hardly as documentated.
All other defined variables even those with simple strings or numerals carry over as 
well when I use the first method. Not nice :)
Since I already have a work around this is not a hot issue, but I would like to know 
if this is a problem with me or with php.
If you need more info please feel free to contact me.


-- 
Edit Bug report at: http://bugs.php.net/?id=11902edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10727: print((2.3 * 100 % 100) . br\n); does not print 30 but 29

2001-05-08 Thread d . peereboom-voller

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: Math related
Bug description:  print((2.3 * 100 % 100) . lt;brgt;\n); does not print 30 but 29

print((2.3 * 100 % 100) . br\n);
This generated 29 
while 
print((230 % 100) . br\n);
writes 30 as expected




-- 
Edit Bug report at: http://bugs.php.net/?id=10727edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]