Changeset 98924


Ignore:
Timestamp:
Oct 21, 2012, 2:00:01 AM (12 years ago)
Author:
ryandesign@…
Message:

php: make php-oracle 32-bit on Lion and up to avoid a crash (#31521)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/php/Portfile

    r98882 r98924  
    747747    php.extensions          oci8 pdo_oci
    748748   
     749    revision                1
     750   
     751    if {${os.platform} == "darwin" && ${os.major} > 10} {
     752        # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
     753        supported_archs i386
     754       
     755        notes-append "
     756On OS X 10.7 Lion and later, ${subport} is only available 32-bit, but ${php}\
     757runs 64-bit by default. To use the Oracle functions in PHP, you must start\
     758${php} in 32-bit mode using the arch command, i.e.:
     759
     760arch -i386 ${php} example.php
     761
     762If using PHP via a web server, configure the web server to start 32-bit.
     763
     764Using ${php} 64-bit while ${subport} is active will result in warning messages\
     765and the Oracle functions being unavailable.
     766"
     767    }
     768   
    749769    categories-append       databases
    750770   
Note: See TracChangeset for help on using the changeset viewer.