CleverCloud / Quercus

Java implementation of PHP, by Caucho's Technology, Clever Cloud Development Branch
http://github.com/CleverCloud/Quercus/wiki
GNU General Public License v2.0
51 stars 12 forks source link

Internal error when using '%' (modulus) arithmetic operator #4

Closed Kdecherf closed 14 years ago

Kdecherf commented 14 years ago

<?php

$i = 10; $ok = 5;

printf("Testing \$i % \$ok : %d",$i % $ok); ?>

Output : internal error java.lang.ArrayIndexOutOfBoundsException: -1

Kdecherf commented 14 years ago

Okay, it's just an unexpected behavior with printf() and unescaped '%' ... Closing this issue.