[MacPorts] #21160: 10.6 php 5.3 - php5-tidy dies at runtime

MacPorts noreply at macports.org
Sun Sep 6 20:09:46 PDT 2009


#21160: 10.6 php 5.3 - php5-tidy dies at runtime
----------------------------------+-----------------------------------------
 Reporter:  ben.lake@…            |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  1.8.0                                
 Keywords:  php5 tidy php5.3      |        Port:  php5-tidy                            
----------------------------------+-----------------------------------------

Comment(by ryandesign@…):

 Hmm, it works for me, using the
 [http://www.php.net/manual/en/tidy.examples.basic.php example from the
 manual]:

 {{{
 $ cat tidy.php
 <?php
 ob_start();
 ?>
 <html>a html document</html>
 <?php
 $html = ob_get_clean();

 // Specify configuration
 $config = array(
            'indent'         => true,
            'output-xhtml'   => true,
            'wrap'           => 200);

 // Tidy
 $tidy = new tidy;
 $tidy->parseString($html, $config, 'utf8');
 $tidy->cleanRepair();

 // Output
 echo $tidy;
 $ php tidy.php
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <title></title>
   </head>
   <body>
     a html document
   </body>
 </html>$
 }}}

 Did you upgrade from Leopard? If so, did you follow the [wiki:Migration
 Migration] page and rebuild all your ports? I have a feeling your tidy may
 be 32-bit while your php5-tidy is 64-bit.

-- 
Ticket URL: <http://trac.macports.org/ticket/21160#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list