Re: [PHP4BETA] Regular Expression Problem

From: Date: Mon, 14 Feb 2000 18:50:22 +0000
Subject: Re: [PHP4BETA] Regular Expression Problem
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10260@lists.php.net to get a copy of this message
On Mon, 14 Feb 2000 11:24:26 -0500, Victor <victord@wwcd.com> said: Victor> $test = "Hello World"; $brks = split("\s+",$test); Victor> for ($i = 0; i < count($brks); $i++) print $brks[0]."<HR>"; Victor> The, program goes into infinite loop. If I use "[ ]", the Victor> program starts to eat cpu and goes to 99% I tried to compile Victor> it regularly (and I get the problem). I tried Victor> --with-regex=apache and still have the same problem. I have Victor> tried to compile with --with-regex=system, but as I posted Victor> before, I get a compile error (I posted it below for Victor> reference). Victor> This seems to be some solaris issue since noone else (other Victor> some other solaris soul :) seems to be having these issues. I had similar problems with this and with any of the other functions which used regexps (e.g., split()) with PHP4b3 under Solaris-2.6. Sorry, I haven't found a workaround yet. Someone else suggested recompiling with different regexp libraries but I haven't had time to look into the options; if --with-regex=apache failed for you it's bad news for me: on mine, phpinfo() shows: System regex library enabled Assuming "system" means "operating system". Are there others that would be more likely to win?

« previous php.version4 (#10260) next »