#20769 [Bgs]: regex hangs php if --with-system-regex turned on

From: Date: Mon, 02 Dec 2002 19:30:35 +0000
Subject: #20769 [Bgs]: regex hangs php if --with-system-regex turned on
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26416@lists.php.net to get a copy of this message
ID: 20769 User updated by: robert.penz@outertech.com Reported By: robert.penz@outertech.com Status: Bogus Bug Type: Regexps related Operating System: linux debian-woody PHP Version: 4.2.3 New Comment: i used that for compiling and I didn't get an error message, and it hangs. ./configure --with-gmp --enable-ftp --with-zlib\ --enable-bcmath --enable-sysvsem --enable-sysvshm --enable-calendar\ --enable-trans-sid --enable-versioning --enable-track-vars\ --enable-inline-optimization --with-config-file-path=/etc/php4\ --enable-readline --with-pam --with-gettext\ --with-gdbm --with-mysql --with-apxs\ --with-xml --with-sablot --with-xslt-sablot\ --enable-xslt --enable-force-cgi-redirect --with-system-regex\ --with-dom --enable-mcrypt --with-mhash I changed it to ./configure --with-gmp --enable-ftp --with-zlib\ --enable-bcmath --enable-sysvsem --enable-sysvshm --enable-calendar\ --enable-trans-sid --enable-versioning --enable-track-vars\ --enable-inline-optimization --with-config-file-path=/etc/php4\ --with-gdbm --with-mysql --with-apxs\ --with-xml --with-sablot --with-xslt-sablot\ --enable-xslt --enable-force-cgi-redirect \ --with-dom --enable-mcrypt --with-mhash and now it works Previous Comments: ------------------------------------------------------------------------ [2002-12-02 13:25:57] derick@php.net That configure option doesn't exist; in case you mean --with-regex=system, read ./configure --help: --with-regex=TYPE regex library type: system, apache, php. Default: php WARNING: Do NOT use unless you know what you are doing! You should not touch this unless you know what you're doing, and my guess is that you have clue what this is for. Not a bug -> bogus ------------------------------------------------------------------------ [2002-12-02 13:23:34] robert.penz@outertech.com ereg( '^[a-z0-9_\-\.]+@[a-z0-9_\-\.]+\.[a-z0-9]+', 'me@some.where', $bla); does hang with 100% cpu&mem so the kernel kills it Dec 2 17:49:51 whitestar kernel: Out of Memory: Killed process 6176 (apache). it happens only if I compile with --with-system-regex after I figured that out, I stopped investigating deeper .. I don't know if its a debian or php problem ... but I though I report it anyway. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20769&edit=1

« previous php.bugs (#26416) next »