[98924] trunk/dports/lang/php/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Oct 20 19:00:01 PDT 2012
Revision: 98924
http://trac.macports.org//changeset/98924
Author: ryandesign at macports.org
Date: 2012-10-20 19:00:01 -0700 (Sat, 20 Oct 2012)
Log Message:
-----------
php: make php-oracle 32-bit on Lion and up to avoid a crash (#31521)
Modified Paths:
--------------
trunk/dports/lang/php/Portfile
Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile 2012-10-21 01:34:26 UTC (rev 98923)
+++ trunk/dports/lang/php/Portfile 2012-10-21 02:00:01 UTC (rev 98924)
@@ -746,6 +746,26 @@
subport ${php}-oracle {
php.extensions oci8 pdo_oci
+ revision 1
+
+ if {${os.platform} == "darwin" && ${os.major} > 10} {
+ # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
+ supported_archs i386
+
+ notes-append "
+On OS X 10.7 Lion and later, ${subport} is only available 32-bit, but ${php}\
+runs 64-bit by default. To use the Oracle functions in PHP, you must start\
+${php} in 32-bit mode using the arch command, i.e.:
+
+arch -i386 ${php} example.php
+
+If using PHP via a web server, configure the web server to start 32-bit.
+
+Using ${php} 64-bit while ${subport} is active will result in warning messages\
+and the Oracle functions being unavailable.
+"
+ }
+
categories-append databases
description a PHP interface to Oracle, including the oci8 and \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121020/9992a900/attachment.html>
More information about the macports-changes
mailing list