[MacPorts] #50683: php56-enchant

MacPorts noreply at macports.org
Sat Feb 20 05:46:07 PST 2016


#50683: php56-enchant
----------------------+--------------------------------
 Reporter:  buname@…  |      Owner:  macports-tickets@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.3.4
 Keywords:            |       Port:
----------------------+--------------------------------
 make phpinfo(); crashing
 php -i is working

 php56-enchant-5.6.18_0.darwin_14.x86_64.tbz2

 see my script do discover who crash phpinfo() (launched by sudo test.sh)
 {{{
 #!/usr/bin/env bash

 # instal all the stuff, php56-FreeImage cause php -i error in the previous
 round
 port install $(port echo name:^php56 | grep -v -E
 'php56-oracle|php56-cairo_wrapper|php56-xcache|php56-FreeImage' )

 # list installed, don't try to deactivate php56-apache2handler|php56-curl
 because of dependencies
 for thePort in $( port echo installed | awk '{if($1~'/^php56-/') print $1
 ;}' | grep -v -E 'php56-apache2handler|php56-curl' ) ; do
         # try do deactivate a module
         echo -n "Test without $thePort : "
         port deactivate $thePort
         if [ ! "$?" -eq "0" ] ; then
                 echo "Error for deactivate"
                 exit 1
         fi
         # began tests
         /opt/local/bin/php -i &> /dev/null
         if [ ! "$?" -eq "0" ] ; then
                 echo "ERROR php -i"
         else
                 echo "OK"
                 echo -n "Web test : "
                 port unload apache2
                 sleep 2
                 port load apache2
                 sleep 1
                 curl http://127.0.0.1/index.php &> ~/tmpCurlOut
                 if [ ! "$?" -eq "0" ] ; then
                         echo "ERROR web test"
                 else
                         echo "OK we find the web faulty module !"
                         exit 1
                 fi
         fi
         # on reactive
         port activate $thePort
         if [ ! "$?" -eq "0" ] ; then
                 echo "Error for activate"
                 exit 1
         fi
 done
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/50683>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list