PHP upgrade to v5.2.10

Chris Janton face at CentosPrime.COM
Thu Jun 25 15:55:47 PDT 2009


On 2009-06-25 , at 07:43 , Peter Oakley wrote:

> After the PHP upgrade to v5.2.10, this yields "0000" for $thisYear.  
> Prior to the upgrade, $thisYear would be set to "2009". I also tried  
> using the time function directly within the date function: $thisYear  
> = date('Y', time()); Same result.
>
> One other possibly important detail: I've installed a variant: php5  
> +apache +macosx +mysql5 +t1lib


Looks like a PPC only problem? From my G4

admin at x:macports:133 $ which php
/opt/local/bin/php
admin at x:macports:134 $ php --version
PHP 5.2.10 (cli) (built: Jun 25 2009 09:22:38)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
admin at x:macports:135 $ php <foo.php
0000
admin at x:macports:136 $ sudo port deactivate php5 @5.2.10_0+apache 
+darwin_7+macosx+mysql5+pear
Password:
--->  Deactivating php5 @5.2.10_0+apache+darwin_7+macosx+mysql5+pear
admin at x:macports:137 $ sudo port activate php5 @5.2.6_2+apache 
+darwin_7+macosx+mysql5+pear
--->  Activating php5 @5.2.6_2+apache+darwin_7+macosx+mysql5+pear
admin at x:macports:138 $ php <foo.php
2009

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM




More information about the macports-users mailing list