OS | Version | PHP Version | Actual | Expected |
---|---|---|---|---|
Mac OS X | 10.7.3 | 5.3.8 with Suhosin (shipped w/ OSX) | YES | |
Mac OS X | 10.7.4 | 5.3.10 with Suhosin (shipped w/ OSX) | YES | |
Ubuntu Server | 10.04 | 5.3.2 with Suhosin (shipped w/ Ubuntu) | YES | |
Ubuntu Server | 12.04 | 5.3.10 with Suhosin (shipped w/ Ubuntu) | YES | |
Mac OS X | 10.7.3 | 5.3.6 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.7 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.8 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.9 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.10 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.11 - Self installed | YES | |
Mac OS X | 10.7.3 | 5.3.12 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.6 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.7 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.8 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.9 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.10 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.11 - Self installed | YES | |
Mac OS X | 10.7.4 | 5.3.12 - Self installed | YES |
Created
May 18, 2012 19:11
-
-
Save grahamc/2727105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start date, @100: Thu, 01 Jan 1970 00:01:40 +0000 - 100 | |
End date, @200: Thu, 01 Jan 1970 00:03:20 +0000 - 200 | |
New Start Date, @100 + PT1S: Thu, 01 Jan 1970 01:01:41 +0000 - 3701 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start date, @100: Thu, 01 Jan 1970 00:01:40 +0000 - 100 | |
End date, @200: Thu, 01 Jan 1970 00:03:20 +0000 - 200 | |
New Start Date, @100 + PT1S: Thu, 01 Jan 1970 01:01:41 +0000 - 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VS="5.3.6 5.3.7 5.3.8 5.3.9 5.3.10 5.3.11 5.3.12" | |
for version in $VS | |
do | |
if [ ! -d "test-${version}" ]; then | |
mkdir "test-${version}" | |
fi | |
cd "test-${version}" | |
if [ ! -f "php.tar.gz" ]; then | |
wget "http://www.php.net/get/php-${version?}.tar.gz/from/this/mirror" | |
mv mirror php.tar.gz | |
fi | |
if [ ! -d "php-${version}" ]; then | |
tar -zvvxf php.tar.gz | |
fi | |
cd "php-${version}" | |
if [ ! -d `pwd`/build/php_build ]; then | |
./configure --prefix `pwd`/build/php_build | |
make | |
make install | |
fi | |
find ./build/php_build/bin/ -name php.\* -exec {} ../../testcase.php \; > ../../output.${version} | |
cd ../../ | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$startDate = new DateTime('@100'); | |
$endDate = new DateTime('@200'); | |
$oneSecondInterval = new DateInterval('PT1S'); | |
echo "Start date, @100: " . dt_format($startDate) . "\n"; | |
echo "End date, @200: " . dt_format($endDate). "\n"; | |
echo "\n"; | |
$startDate->add($oneSecondInterval); | |
echo "New Start Date, @100 + PT1S: " . dt_format($startDate) . "\n"; | |
function dt_format(DateTime $dt) | |
{ | |
return $dt->format('r') . " - " . $dt->getTimestamp(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment