php4-beta | 200004
Date: 04/13/00
- Next message: thies <email protected>: "Re: [PHP4BETA] cvs: /php4 NEWS"
- Previous message: Rasmus Lerdorf: "Re: [PHP4BETA] Compile Error"
- In reply to: Michael Nino: "RE: [PHP4BETA] PCRE problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is not a memory limit problem. PHP is trying to allocate a rediculous
amount of memory which means there is a bug someplace.
Andi
At 08:20 PM 4/12/00 -0700, Michael Nino wrote:
>I do not know very much about the internals of PHP but this is just a
>hunch-- what is the memory limit in your php.ini set to?
>
>:) michael
>
>-----Original Message-----
>From: Daniel Landau
>[<mailto:nprolog <email protected>>mailto:nprolog <email protected>]
>Sent: Wednesday, April 12, 2000 4:02 PM
>To: php4beta <email protected>
>Subject: [PHP4BETA] PCRE problems
>
>I'm using the PCRE to perform some fairly heavy regexp work using
>preg_replace with the e, i and s flags set in the search pattern, for
>instance:
>
>$pattern = '/(<IMG SRC=")([^"]+)"/eisU';
>$html = preg_replace($pattern, "'\\1' . absoluteImage('\\2', '$this->url',
>'$server') . '\"'", $html);
>
>I'm finding that SOMETIMES a series of this along with similar operations
>generates this error:
>
>FATAL: emalloc(): Unable to allocate 1077909393 bytes
>[Wed Apr 12 13:04:05 2000] [notice] child pid 1361 exit signal Segmentation
>fault (11)
>
>At other times I encounter no problems. Sometimes turning off the 's' flag
>on the pattern fixes the problem, at other times eliminating one or another
>of the replace operations in the series fixes the problem. I'm baffled, and
>hoping that someone can suggest a permanent fix.
>
>Thanx,
>
>-Daniel
>
>--
>PHP 4.0 Beta Mailing List
><<http://www.php.net/version4/>http://www.php.net/version4/>
>To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
>For additional commands, e-mail: php4beta-help <email protected>
>To contact the list administrators, e-mail: php4beta-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: thies <email protected>: "Re: [PHP4BETA] cvs: /php4 NEWS"
- Previous message: Rasmus Lerdorf: "Re: [PHP4BETA] Compile Error"
- In reply to: Michael Nino: "RE: [PHP4BETA] PCRE problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

