Quantcast
Channel: PHP auto-loading and OS X case insensitivity - Server Fault
Viewing all articles
Browse latest Browse all 3

PHP auto-loading and OS X case insensitivity

$
0
0

So I develop PHP on a Mac, and OS X (HFS+) is case insensitive when it comes to file and folder names. This can cause issues with auto-loading PHP classes, because it uses the class name to search for files.

It becomes an an obnoxious problem when case typos in my code can make it all the way through a development cycle, and only rear their ugly head when I start deploying to our (linux) production server.

Does anyone know a of a solution that will force OS X to obey case sensitivity while developing PHP?

Thanks


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>