Skip to content

Commit

Permalink
Revert patch for bug #27782.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Apr 1, 2004
1 parent bbdbfa8 commit 4de55b5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
1 change: 0 additions & 1 deletion NEWS
Expand Up @@ -8,7 +8,6 @@ PHP 4 NEWS
- Fixed bug #27809 (ftp_systype returns null on some ftp servers). (Ilia)
- Fixed bug #27802 (default number of children to 8 when PHP_FCGI_CHILDREN is
not defined). (Ilia)
- Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). (Ilia)
- Fixed bug #27764 (Get return value from a stored procedure not returning any
result sets). (Frank)
- Fixed bug #27762 (SCO Openserver doesn't have S_ISSOCK). (Wez)
Expand Down
8 changes: 0 additions & 8 deletions ext/standard/array.c
Expand Up @@ -718,10 +718,6 @@ PHP_FUNCTION(prev)
RETURN_FALSE;
}
zend_hash_move_backwards(target_hash);
if (!target_hash->pInternalPointer) {
zend_hash_internal_pointer_reset(target_hash);
RETURN_FALSE;
}

if (return_value_used) {
if (zend_hash_get_current_data(target_hash, (void **) &entry) == FAILURE) {
Expand Down Expand Up @@ -750,10 +746,6 @@ PHP_FUNCTION(next)
RETURN_FALSE;
}
zend_hash_move_forward(target_hash);
if (!target_hash->pInternalPointer) {
zend_hash_internal_pointer_end(target_hash);
RETURN_FALSE;
}

if (return_value_used) {
if (zend_hash_get_current_data(target_hash, (void **) &entry) == FAILURE) {
Expand Down
32 changes: 0 additions & 32 deletions ext/standard/tests/array/bug27782.phpt

This file was deleted.

0 comments on commit 4de55b5

Please sign in to comment.