Date: 01/28/00
- Next message: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Previous message: R. P. Channing Rodgers, M.D.: "Re: [PHP4BETA] Configuration problems with "kitchen sink" PHP installation"
- Next in thread: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Reply: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Reply: Andrei Zmievski: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Maybe reply: Chris Shenton: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Using it on Solaris-2.6 Sparc.
I used the sample from the online manual:
<?
$date = "04/30/1973"; // Delimiters may be slash, dot, or hyphen
list( $month, $day, $year ) = split( '[/.-]', $date );
echo "Month: $month; Day: $day; Year: $year<br>\n";
?>
And I get:
Warning: bad regular expression for split() in
/opt/whalemail/apache/htdocs/myproject/test/date.php on line 3
Month: ; Day: ; Year:
I played around with it and got it to fail without returning any
output, sometimes after hanging for quite a few seconds. I saw
messages like the following in the logs:
[Fri Jan 28 12:14:17 2000] [notice] child pid 10582 exit signal Segmentation Fault (11)
FATAL: emalloc(): Unable to allocate -1515870799 bytes
FATAL: erealloc(): Unable to allocate 1515870818 bytes
Other samples from the manual ``split(":", $passwd, 5)'' failed
similarly, as did attempts to use ereg_replace() [presumably because
it uses the same split() code?]
-- 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: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Previous message: R. P. Channing Rodgers, M.D.: "Re: [PHP4BETA] Configuration problems with "kitchen sink" PHP installation"
- Next in thread: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Reply: Joey: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Reply: Andrei Zmievski: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Maybe reply: Chris Shenton: "Re: [PHP4BETA] 4b3: split(): bad regular expression for split()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

