Fix $open_mode value from constant to string

This was a bug in documentation which I fixed. It worked because `r` (if not defined) was assumed to be `'r'` (string) + E_NOTICE.