symisc / PH7

An Embedded Implementation of PHP (C Library)
http://ph7.symisc.net
Other
494 stars 68 forks source link

Minor doc mis-type #1

Closed codenamegary closed 10 years ago

codenamegary commented 10 years ago

First things first, very cool! Thanks for posting!

Was reading through the docs and noticed that in the examples for the eq / ne operators there's a minor error (I think).

http://ph7.symisc.net/features.html#eq_op

That last example comparison...

//Append a single space to the first operand
var_dump(' 255 ' ne '255'); //bool(FALSE) (Not of the same length)

I'm about 80% sure that would return TRUE. Would submit a pull but I don't think those docs are on GitHub. Obviously, this renders the whole thing useless until fixed. /s

symisc commented 10 years ago

Yes, you're right, it's a documentation mistake not an implementation one, so ' 255' ne '255' should return TRUE instead of FALSE.