cvs: pear /Math_Numbers Roman.php
| From: | Sterling Hughes | Date: | Sat, 08 Feb 2003 06:03:09 +0000 |
| Subject: | cvs: pear /Math_Numbers Roman.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8754@lists.php.net to get a copy of this message | ||
sterling Sat Feb 8 01:03:09 2003 EDT
Modified files:
/pear/Math_Numbers Roman.php
Log:
fix for php 4.3
Index: pear/Math_Numbers/Roman.php
diff -u pear/Math_Numbers/Roman.php:1.2 pear/Math_Numbers/Roman.php:1.3
--- pear/Math_Numbers/Roman.php:1.2 Sat Jan 4 06:55:37 2003
+++ pear/Math_Numbers/Roman.php Sat Feb 8 01:03:08 2003
@@ -100,9 +100,9 @@
* @since PHP 4.0.5
*/
function toRoman($num) {
- $conv = array(10 => array('X', 'C', 'M'),
- 5 => array('V', 'L', 'D'),
- 1 => array('I', 'X', 'C'));
+ $conv = array('10' => array('X', 'C', 'M'),
+ '5' => array('V', 'L', 'D'),
+ '1' => array('I', 'X', 'C'));
$roman = '';
if ($num < 0) {
@@ -145,4 +145,4 @@
}
// }}}
-?>
\ No newline at end of file
+?>