php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40878 mod returns wrong value
Submitted: 2007-03-21 09:09 UTC Modified: 2007-03-29 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: schmidt at ds-designs dot de Assigned:
Status: No Feedback Package: Math related
PHP Version: 4.4.6 OS: Windows, Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 + 14 = ?
Subscribe to this entry?

 
 [2007-03-21 09:09 UTC] schmidt at ds-designs dot de
Description:
------------
995 % 100 returns 94...
Why?

Reproduce code:
---------------
<?php
  $val = 995 % 100;
  print($val);
?>

Expected result:
----------------
95

Actual result:
--------------
94

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-21 09:11 UTC] schmidt at ds-designs dot de
Sorry, wrong PHP Version
 [2007-03-21 09:17 UTC] derick@php.net
Not enough information 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 information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


I can not reproduce this, it shows 95 for me for all tests...
 [2007-03-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC