One the the improvements we've made to v1.0.1 is PHP thread safety. It sounds great, yes, but what is it?
A quick explanation:
WebForge features a built-in webserver to serve your projects to the built-in browser (your own little world...). Some traditional webservers are multi-process, creating a new process for each request. This keeps everything (memory, resources, etc) nicely separated.
However, iOS apps are restricted to one process, so this approach is not an option. The good news is, apps can (and very frequently do!) use multiple threads. We built the WebForge webserver therefore to be single-process, but multi-thread, creating a new thread for each request.
While this allows requests to be handled concurrently, it presents a problem when you have a library that uses global resources (like PHP), as threads don't have the same resource separation as processes. You therefore run into conflicts between requests. At best you leak information between requests, at worst you crash.
Enter PHP ZTS (Zend Thread Safety). This option allows PHP to separate it's global resources in a thread-safe way, providing the separation needed to operate in a single process, multithread environment.
With v1.0.1 we've enabled PHP ZTS and implemented it in the PHP plugin. This means scripts can execute concurrently ex. multiple PHP-powered images in a page, or a script requesting another using cURL (another thing we added!), without leaking data or crashing the app.
Just one more step to the best option for PHP development on iOS.