Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-13 Thread Marcello Lupo

Probably i missunderstand your question but this is my production build...
I discovered this problem yesterday after 2 week from the installation??
It is a problem that i had with the dialup_admin package to administer radius 
account via web, but i was thinking to be a problem of coding of the author 
of the package, so i left the problem there.
But now i have the error with my code.
Do you have any ideas?
Which difference there is between compiling wit --system-regex and without ? 
(may the problem reside there?).
Bye 
MArcello

On Monday 12 August 2002 21:10, Danny Shepherd wrote:
 Have you tried it on a non debug build?

 Danny

 - Original Message -
 From: Marcello Lupo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 12, 2002 8:14 PM
 Subject: [PHP] In version 4.2.1 ereg_replace break Apache

  ## A simple function to remove consonant ##
  $temp=thisisatry;
  $temp=ereg_replace([BCDFGHJKLMNPQRSTVWXYZ],,$temp);
  echo $temp;
 
 
  I get :
 
  [Mon Aug 12 18:13:29 2002] [notice] child pid 16363 exit signal

 Segmentation

  fault (11)
  FATAL:  emalloc():  Unable to allocate 1087156712 bytes
 
  In apache logs.
 
 
  THis is my configure line:
 
  './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-debug'
  '--enable- calendar' '--enable-ftp'
  '--with-imap=../imap-2001.BETA.SNAP-0107022325' '-- with-mcrypt'
  '--with-mhash' '--with-mysql=/usr' '--enable-memory-limit' '--
  enable-track-vars' '--with-zlib' '--with-pdflib'
  '--with-ttf=/usr/local/include' '-- with-jpeg-dir=/usr'
  '--with-tiff-dir=/usr' '--with-system-regex=yes' '--with-gettext'
  '--with-openssl' '--with-fdftk'

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




Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-13 Thread Marcello Lupo

Solved the problem.
I have recompiled php with --with-regex=system instead of --with-system-regex 
and the problem is disappeared.
Thanks anyway for help,
Bye Marcello


On Tuesday 13 August 2002 10:01, Marcello Lupo wrote:
 Probably i missunderstand your question but this is my production build...
 I discovered this problem yesterday after 2 week from the installation??
 It is a problem that i had with the dialup_admin package to administer
 radius account via web, but i was thinking to be a problem of coding of the
 author of the package, so i left the problem there.
 But now i have the error with my code.
 Do you have any ideas?
 Which difference there is between compiling wit --system-regex and without
 ? (may the problem reside there?).
 Bye
 MArcello

 On Monday 12 August 2002 21:10, Danny Shepherd wrote:
  Have you tried it on a non debug build?
 
  Danny
 
  - Original Message -
  From: Marcello Lupo [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, August 12, 2002 8:14 PM
  Subject: [PHP] In version 4.2.1 ereg_replace break Apache
 
   ## A simple function to remove consonant ##
   $temp=thisisatry;
   $temp=ereg_replace([BCDFGHJKLMNPQRSTVWXYZ],,$temp);
   echo $temp;
  
  
   I get :
  
   [Mon Aug 12 18:13:29 2002] [notice] child pid 16363 exit signal
 
  Segmentation
 
   fault (11)
   FATAL:  emalloc():  Unable to allocate 1087156712 bytes
  
   In apache logs.
  
  
   THis is my configure line:
  
   './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-debug'
   '--enable- calendar' '--enable-ftp'
   '--with-imap=../imap-2001.BETA.SNAP-0107022325' '-- with-mcrypt'
   '--with-mhash' '--with-mysql=/usr' '--enable-memory-limit' '--
   enable-track-vars' '--with-zlib' '--with-pdflib'
   '--with-ttf=/usr/local/include' '-- with-jpeg-dir=/usr'
   '--with-tiff-dir=/usr' '--with-system-regex=yes' '--with-gettext'
   '--with-openssl' '--with-fdftk'

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




Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-12 Thread Danny Shepherd

Have you tried it on a non debug build?

Danny

- Original Message -
From: Marcello Lupo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 8:14 PM
Subject: [PHP] In version 4.2.1 ereg_replace break Apache


 ## A simple function to remove consonant ##
 $temp=thisisatry;
 $temp=ereg_replace([BCDFGHJKLMNPQRSTVWXYZ],,$temp);
 echo $temp;


 I get :

 [Mon Aug 12 18:13:29 2002] [notice] child pid 16363 exit signal
Segmentation
 fault (11)
 FATAL:  emalloc():  Unable to allocate 1087156712 bytes

 In apache logs.


 THis is my configure line:

 './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-debug'
 '--enable- calendar' '--enable-ftp'
 '--with-imap=../imap-2001.BETA.SNAP-0107022325' '-- with-mcrypt'
 '--with-mhash' '--with-mysql=/usr' '--enable-memory-limit' '--
 enable-track-vars' '--with-zlib' '--with-pdflib'
 '--with-ttf=/usr/local/include' '-- with-jpeg-dir=/usr'
 '--with-tiff-dir=/usr' '--with-system-regex=yes' '--with-gettext'
 '--with-openssl' '--with-fdftk'



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