3 ms·
>PHP functions not as sane, complete library functions, but rather as thin wrappers to the underlying OS. Except they're not really that thin. >in Windows it
by TazeTSchnitzel 14y ago
>PHP functions not as sane, complete library functions, but rather as thin wrappers to the underlying OS.
Except they're not really that thin.
>in Windows it wraps the local mail program which seems to have a gotcha with periods
Nope, in Windows it implements the SMTP protocol, on UNIX it runs sendmail.
>instead of providing a higher-level interface that stays consistent across platforms, it exposes low-level OS gunk and gotchas through its thin wrappers on low-level-ish functions.
Except it doesn't. There's quite a few things that are named like OS functions, but are implemented internally. For example, all the C stdlib-like string functions.
- acabal 14y agoMy mistake then :) I admit I haven't read the source, I'm just going off of the quirkiness of cross-platform PHP and the way the functions seem to behave.