I suggest you ...

Add the same versions for different OSs

Different PHP versions may have different output, but it would be very interesting to know the different outputs for the same (and different) PHP version on different operating systems.

This code, for example, behaves very differently on some earlier PHP versions on Windows, but it's been the same since the NAN constant was intruduced on Linux:

<?php

print "is_numeric(NAN) ? " . (is_numeric(NAN) ? "true\n" : "false\n");
print "NAN == 0 ? " . (NAN == 0 ? "true\n" : "false\n");
print "NAN == 1 ? " . (NAN == 1 ? "true\n" : "false\n");
print "NAN === 0 ? " . (NAN === 0 ? "true\n" : "false\n");
print "NAN === 1 ? " . (NAN === 1 ? "true\n" : "false\n");
print "NAN == NAN ? " . (NAN == NAN ? "true\n" : "false\n");
print "NAN === NAN ? " . (NAN === NAN ? "true\n" : "false\n");
print "(int) NAN = " . ((int) NAN) . "\n";

12 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Ole Martin Handeland shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • AdminSjon Hortensius (Admin, 3v4l) commented  ·   ·  Flag as inappropriate

    That is a nice idea, but a pretty difficult; as I currently use certain security features only available in Linux. I could use wine, but that might just introduce more uncertainties about the issues being found.

Feedback and Knowledge Base