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

ad...@x:macports:133 $ which php
/opt/local/bin/php
ad...@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
ad...@x:macports:135 $ php <foo.php
0000
ad...@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
ad...@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
ad...@x:macports:138 $ php <foo.php
2009

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


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to