cvs: /php4 ChangeLog /php4/ext/standard reg.c

From: Date: Mon, 04 Oct 1999 13:05:04 +0000
Subject: cvs: /php4 ChangeLog /php4/ext/standard reg.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-5120@lists.php.net to get a copy of this message
thies Mon Oct 4 09:05:04 1999 EDT Modified files: /php4 ChangeLog /php4/ext/standard reg.c Log: ereg now returns a continious array 0..9 again - empty values are returned as false. i think this is *more* compatible with PHP3 - unless anybody really dislikes it i'd prefer it like this. Index: php4/ChangeLog diff -u php4/ChangeLog:1.161 php4/ChangeLog:1.162 --- php4/ChangeLog:1.161 Sun Oct 3 15:05:25 1999 +++ php4/ChangeLog Mon Oct 4 09:04:31 1999 @@ -2,6 +2,7 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ?? 1999, Version 4.0 Beta 3 +- Fixed backwards incompatibility with ereg() (Thies) - Updated Zend garbage collection with a much more thorough method. (Andi, Zend library) - Added the ability to use variable references in the array() construct. Index: php4/ext/standard/reg.c diff -u php4/ext/standard/reg.c:1.20 php4/ext/standard/reg.c:1.21 --- php4/ext/standard/reg.c:1.20 Mon Aug 2 15:16:51 1999 +++ php4/ext/standard/reg.c Mon Oct 4 09:04:32 1999 @@ -17,7 +17,7 @@ | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ -/* $Id: reg.c,v 1.20 1999/08/02 19:16:51 zeev Exp $ */ +/* $Id: reg.c,v 1.21 1999/10/04 13:04:32 thies Exp $ */ #include <stdio.h> #include "php.h" @@ -261,6 +261,8 @@ end = subs[i].rm_eo; if (start != -1 && end > 0 && start < string_len && end < string_len && start < end) { add_index_stringl(array, i, string+start, end-start, 1); + } else { + add_index_bool(array, i, 0); } } efree(buf);

« previous php.version4 (#5120) next »