go to bug id or search bugs for
On linux (built in) and IIS 4.0 (cgi vers) on nt4.0 wrkst i can use function for example:
On pws it reproduces error (description I don't remember -> it happens at home)
I should put mon in double quotes '"'. Then it works.
This error happens with other parameters like nmon, year ...
With quotes it works on linux and IIS 4.0 too.
Add a Patch
Add a Pull Request
I bet the text of the errmsg is somethign like this:
Warning: Use of undefined constant x - assumed 'x' in ... on line ...
this is caused by error_reporting set high enough to trigger this warning.
Yes, the message I received is like this ...
I didn't receive that before.
Suggestions: don't set error reporting by default so high in installation wizard for win32 binaries.
The usage of $dat[mon] is not the way it shoudl work. Without the "'s, it's not possible for PHP to see whether mon is a constant, or an index. Therefore you should always use "mon" if you want mon to be the index of your array.