yuri41
So this code throws up a "Parse error: syntax error, unexpected 'function' (T_FUNCTION)"
class User
{
public static $mapping = array(
'username' => array(
'type' => 'string',
'length' => 32,
'unique' => true,
'nullable' => function() {
// Some logic to determine value.
}
)
);
}PHP Socket Programming, done the Right Way
Pipe: An Asset Pipeline in PHP inspired by Sprockets.
Grails Plugin Etiquette
Show HN: A better interface for PHP's libevent extension.
The structure of Go's standard library could be a good inspiration for restructuring PHP's standard library.
Composer and Pyrus both are able to install packages local to the project.
So just grab the dependencies before and then upload the "damn thing" to the server to deploy and this will work on every shared host out there.
Pod, a port of the Rack Specification to PHP.
PHP Unix Programming
Travis needs your Help
PHP Project Automation with Bob
PHP 5.3.9 released
On XML Abuse, a rant
The Obvious, the Easy, and the Possible
Being respective of your time, as well as others
php-build currently solves mainly the problem of configuring PHP correctly, so the build is isolated to the prefix it's installed in (it also sets up PEAR or Pyrus correctly).
Without php-build I have to do this when I want to test, for example PHP 5.4.0RC1:
1. Find a tarball 2. Extract Tarball 3. Configure it 3a. If I already have a script to configure this version go to 4. 3b. Pick configure options (PHP has a sh*tload of them) 3c. See if it works 4. make && make install 5. install Pyrus 6. install XDebug 7. install PHPUnit
So with php-build (and php-build-plugin-phpunit): 1. php-build -i development 5.4.0rc1 ~/.phpenv/versions/5.4.0rc1 2. ? 3. Profit
Php-build, Compile and Install PHP
Php-build
I made the "80%" up, but the list should only capture what most of the people most of the time do with their computers. If you want to do the one more thing, there will always be more software for that, also for your tablet.
My point is that Tablets are the new _personal_ computer and what we knew as PC before is now going to be the _workstation_.
Whe Power users are going to be the 80 percent
But it ain't present in the current builds of 5.4, AFAIK. Don't know what's happened there...
The next thing is, that the Silex Framework binds route parameters as arguments to the closure. Additionally the user could forget to declare the $app argument in the passed closure.