|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-22 09:31 UTC] andrey at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
This following script is from php manual and is causing me trouble. Ive asked help from #php (from efnet & ircnet) and in both places ppl think its a bug. Here's the script. <?PHP $date = "1999-01-01"; if ( ereg( "([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs ) ) { echo "$regs[3].$regs[2].$regs[1]"; } else { echo "Invalid date format: $date"; } ?> This script wasnt the first time i found the bug but ive tested this too and the same things happens. Browser complains about empty document and apache's errlog file gets this message: [Thu Jul 22 15:59:22 1999] [notice] child pid 16696 exit signal Segmentation fault (11) Here's info that might help to solve the problem.. PHP Version: 3.0.11 (selfcompiled, with following switches) --with-apxs=/usr/sbin/apxs --with-pgsql=/usr/include/pgsql --with-system-regex Apache: 1.3.6 (straight from redhat RPM, not self compiled) Distro: Linux Redhat 6.0