Skip to content

Instantly share code, notes, and snippets.

@jeremykendall
Last active December 18, 2015 04:59
Show Gist options
  • Save jeremykendall/5729040 to your computer and use it in GitHub Desktop.
Save jeremykendall/5729040 to your computer and use it in GitHub Desktop.
This was the reason I sent the "DIRECTORY_SEPARATOR" does not exist tweet (https://twitter.com/jeremykendall/status/342985273774321665). Boy am I embarrassed.
# php -v
PHP 5.3.14 (cli) (built: Aug 24 2012 12:56:43)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
# php -a
Interactive shell
php > var_dump(directory_separator)
php > var_dump(DIRECTORY_SEPARATOR);
PHP Parse error: syntax error, unexpected T_STRING in php shell code on line 2
php > var_dump(PATH_SEPARATOR);
string(1) ":"
php > exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment