 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHP.net: PHP 5.4 beta2 released
by Chris Cornutt October 27, 2011 @ 10:12:59
The PHP.net site has a new announcement about the latest version of the language in the PHP 5.4.x series - beta 2 has been released for testing.
The PHP development team is proud to announce the second beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. [...] Please help us to identify bugs by testing new features and looking for unintended backward compatibility breaks, so we can fix the problems and fully document intended changes before PHP 5.4.0 is released. Report findings to the QA mailing list and/or the PHP bug tracker.
Remember - this is not a production release, so do not use it in your live applications (unless you really like to live dangerously, of course). You can look at the NEWS file for a complete list of changes.
voice your opinion now!
beta release second windows binary qa bugtracker
Pumka.net: Why MySQL timestamp is 24 seconds different from PHP
by Chris Cornutt October 26, 2010 @ 11:24:31
On the Pumka.net blog, Anton Oliink has an interesting problem where his timestamp on the PHP side of his application was different than the one on his MySQL backend's side - by 24 seconds, in fact.
You may find that timestamp value returned by MySQL UNIX_TIMESTAMP() function is 24 seconds grater than those returned by PHP functions and classes like strtotime(), mktime, DateTime::getTimestamp(), Zend_Date::getTimestamp().
As it turns out, the issue isn't' really an "issue" after all - it's caused by MySQL's compensation for leap seconds. He gives a few ways you can avoid it being an issue in your application, though: disable leap seconds, only convert to timestamps on the PHP side or just use the "unix_timestamp()" and "from_unixtime()" methods to work with the values.
voice your opinion now!
mysql timestamp second leapsecond
Evert Pot's Blog: PHPUnit A second look
by Chris Cornutt January 21, 2009 @ 09:38:31
Evert Pot has taken a second look at the popular unit testing software for PHP - PHPUnit.
Somewhere in 2007 I had a deep dive into PHPUnit, and there were a couple of things that bugged me. Looking into it again, it turns out that since then everything has been fixed, making it perfect for integrating it into sabredav. Most of the protocol-level WebDAV stuff is all tested with litmus, but having good unit tests will help ensuring a high quality of the inner business logic.
He also includes a few "highlights" (pleasant things) he found in this second look like a bootstrap setting, a more perfected code coverage analysis and the inclusion of an XML config file to define them all.
voice your opinion now!
phpunit second look xml configure codecoverage
Derick Rethans' Blog: Leap Seconds and What To Do With Them
by Chris Cornutt January 01, 2009 @ 20:56:35
Derick Rethans one of the go-to guys for working with time in PHP has made this new post about something 2008 picked up along the way to 2009 - a leap second.
The start of this new year started with some buzz about a leap second being introduced between Dec 31st 2008, 23:59:59 and Jan 1st 2009, 00:00:00. I've had people ask where this leap second actually comes from, and whether you need to worry about it in your applications. To understand leap seconds means, unfortunately, understanding how time is actually kept.
He ponints out one of the major problems - how time is kept. With variants of Universal Time, it makes it hard to track down what's "right". He breaks out the difference between other time storage methods and the unix time that PHP can use (that counts the number of seconds since Jan 1st 1970) and how the leap second was handled for each.
voice your opinion now!
leap second time unix utc universal time utc terrestrial greenwich mean
KillerSites.com: Book Review PHP Cookbook 2nd edition
by Chris Cornutt October 18, 2006 @ 08:47:00
On KillerSites.com, Stefan Mischook has a new book review of a new version of a good old PHP book standby - the 2nd Edition of the PHP Cookbook from O'Reilly.
The 'cookbook' series from O'Reilly press target a reader who understands (at least) the basics of a subject, these are not good books for beginners. This is the 2nd edition and covers PHP 5.
Stefan comments on the content of the book, noting that it covers "chunks" of functionality by task rather than teaching the language details behind it. He notes that this is just the book for someone needing to perform some kind of task, and just looking for the bit of code to get it done. The book also shares some helpful hints along the way, like "What is the difference between ereg and preg?"
Overall, he recommends the book, but only for those that already have a gasp on PHP and need those little code bits to make things work.
voice your opinion now!
oreilly cookbook second edition review book oreilly cookbook second edition review book
|
Community Events
Don't see your event here? Let us know!
|