[PHP] sablotron debian(unstable) iconv configure problems [please help]

2002-07-31 Thread Niklas Fondberg

I get:

checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking libexpat dir for Sablotron XSL support... no
checking enable JavaScript for Sablotron... yes
checking for Sablotron libraries in the default path... found Sablotron in
/usr
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: iconv not found, in order to build sablotron you need the
iconv library
make[1]: Entering directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make[1]: Entering directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make[1]: Entering directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory
`/opt/build/system_servers/deb/apache-php/php-4.2.2'
make: *** [deb] Error 2

when I try to build php-4.2.2

CONFIG_OPTS =   --with-mysql \
--with-config-file-path=/etc \
--disable-rpath \
--enable-inline-optimization \
--with-mm \
--enable-sysvsem \
--enable-sysvshm \
--enable-shmop \
--with-bz2 \
--with-curl \
--with-dom \
--with-zlib \
--with-xml \
--with-gd \
--with-regex=system \
--enable-magic-quotes \
--enable-safe-mode \
--enable-track-vars \
--enable-wddx \
--with-imap \
--with-kerberos \
--with-imap-ssl \
--enable-trans-sid \
--enable-ftp  \
--with-dom  \
--with-dom-xslt  \
--with-sablot-js\
--with-xslt-sablot  \
--enable-xslt   \
--with-dom-exslt\
--with-openssl  \
--enable-bcmath \
--with-pear=/var/devel  \
--enable-sockets \
        --with-soap

--
Best Regards

Niklas Fondberg  -  [EMAIL PROTECTED]
System Developer  -  I3 Micro Technology


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg



1.7303379774094 seconds with strtr()
1.557923078537 seconds with preg_replace()
1.494078040123 seconds with str_replace()
1.4984160661697 seconds with ereg_replace()
/* source ---8<---*/
" => "PRE",
 ""=>"LI",
 " "TABLE ROW START",
 "" => "BOLD",
 " "TABLE CELL START"
 );
 
/* - END CONFIG -- */
// read in filedata
for ($i = 0; $i < count($files); $i++) {
 $raw[] = implode("", file($files[$i]));
}
// build preg_replace reg/replace pattern arrays
while(list($reg, $rep) = each($strtr_rep)) {
 $preg_reg[]  = "/".$reg."/";
 $preg_repl[] = $rep;
}
//START TEST
$timer = new Timer();

for ($i=0; $i < 1000; $i++) {
 $data = ($i % 2 == 0) ? $raw[0] : $raw[1];
 if ($test == 1) {
  $test = "strtr";
  $data = strtr($data, $strtr_rep);
 } elseif ($test == 2) {
  $test = "preg_replace";
  $data = preg_replace($preg_reg, $preg_repl, $data);
 } elseif ($test == 3) {
  $test = "str_replace";
  while(list($k, $v) = each($strtr_rep)) {
   $data = str_replace($k, $v, $data);
  }
 } elseif ($test == 4) {
  $test = "ereg_replace";
  while(list($k, $v) = each($strtr_rep)) {
   $data = ereg_replace($k, $v, $data);
  }
 }
}
print $timer->getElapsed() . " seconds with $test";
?>
/*  ---8<- END SOURCE -8<--8<- */
--
Best Regards

Niklas Fondberg  -  [EMAIL PROTECTED]
System Developer  -  I3 Micro Technology


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg



1.7303379774094 seconds with strtr()
1.557923078537 seconds with preg_replace()
1.494078040123 seconds with str_replace()
1.4984160661697 seconds with ereg_replace()
/* source ---8<---*/
" => "PRE",
 ""=>"LI",
 " "TABLE ROW START",
 "" => "BOLD",
 " "TABLE CELL START"
 );

/* - END CONFIG -- */
// read in filedata
for ($i = 0; $i < count($files); $i++) {
 $raw[] = implode("", file($files[$i]));
}
// build preg_replace reg/replace pattern arrays
while(list($reg, $rep) = each($strtr_rep)) {
 $preg_reg[]  = "/".$reg."/";
 $preg_repl[] = $rep;
}
//START TEST
$timer = new Timer();

for ($i=0; $i < 1000; $i++) {
 $data = ($i % 2 == 0) ? $raw[0] : $raw[1];
 if ($test == 1) {
  $test = "strtr";
  $data = strtr($data, $strtr_rep);
 } elseif ($test == 2) {
  $test = "preg_replace";
  $data = preg_replace($preg_reg, $preg_repl, $data);
 } elseif ($test == 3) {
  $test = "str_replace";
  while(list($k, $v) = each($strtr_rep)) {
   $data = str_replace($k, $v, $data);
  }
 } elseif ($test == 4) {
  $test = "ereg_replace";
  while(list($k, $v) = each($strtr_rep)) {
   $data = ereg_replace($k, $v, $data);
  }
 }
}
print $timer->getElapsed() . " seconds with $test";
?>
/*  ---8<- END SOURCE -8<--8<- */
--
Best Regards

Niklas Fondberg  -  [EMAIL PROTECTED]
System Developer  -  I3 Micro Technology


--

--
Best Regards

Niklas Fondberg  -  [EMAIL PROTECTED]
System Developer  -  I3 Micro Technology



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]