CVS update: php4/ext/standard

From: Date: Wed, 09 Jun 1999 21:13:05 +0000
Subject: CVS update: php4/ext/standard
Groups: php.version4 
Request: Send a blank email to php-version4+get-1437@lists.php.net to get a copy of this message
Date: Wednesday June 9, 1999 @ 17:13 Author: andrey Update of /repository/php4/ext/standard In directory php:/tmp/cvs-serv2879/ext/standard Modified Files: basic_functions.c Log Message: Fixed a bug in preg_split. Fixed a bug in array_shift/array_pop. Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.29 php4/ext/standard/basic_functions.c:1.30 --- php4/ext/standard/basic_functions.c:1.29 Wed Jun 9 11:39:56 1999 +++ php4/ext/standard/basic_functions.c Wed Jun 9 17:13:05 1999 @@ -2583,7 +2583,11 @@ zend_error(E_WARNING, "The argument needs to be an array"); return; } - + + if (zend_hash_num_elements(stack->value.ht) == 0) { + return; + } + /* Get the first or last value and copy it into the return value */ if (off_the_end) zend_hash_internal_pointer_end(stack->value.ht);

« previous php.version4 (#1437) next »