php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8064 split("\.", blah) causes crash
Submitted: 2000-11-30 20:39 UTC Modified: 2000-12-30 19:37 UTC
From: svanegmond at home dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.3pl1 OS: debian woody
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: svanegmond at home dot com
New email:
PHP Version: OS:

 

 [2000-11-30 20:39 UTC] svanegmond at home dot com
source code: 
<? 
        $str = "hello.there"; 
        print $str; 
        $arr = split("\.", $str); 
        print $arr[0]; 
?>


result:

hello.there
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 
bytes) in /home/svanegmond/
www/bang.dhs.org/docs/demobug.php on line 4


URL for source: http://raw.bang.dhs.org/demobug.php
URL for runtime: http://bang.dhs.org/demobug.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-04 08:50 UTC] sniper@php.net
I can not reproduce this with PHP 4.0.4RC3.
Could you please try it:

http://www.php.net/distributions/php-4.0.4RC3.tar.gz

--Jani
 [2000-12-07 03:46 UTC] sniper@php.net
Try increasing the memory_limit directive in your php.ini file.

--Jani
 [2000-12-30 19:37 UTC] sniper@php.net
No feedback and can not reproduce. 

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 08:01:29 2025 UTC