Re: [PHP4BETA] 4b3: split(): bad regular expression for split()
| From: | Joey | Date: | Fri, 28 Jan 2000 18:22:05 +0000 |
| Subject: | Re: [PHP4BETA] 4b3: split(): bad regular expression for split() | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9529@lists.php.net to get a copy of this message | ||
Try a more recent snapshot...I think I remember seeing something floating
around on this very early in the B3 process.
--Joey Smith
On 28 Jan 2000, Chris Shenton wrote:
> 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@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>