]> granicus.if.org Git - php/commitdiff
I don't think 8cceb012a7aabf3c36ab7c2724a436f976cdd165 is needed
authorStanislav Malyshev <stas@php.net>
Tue, 13 Sep 2016 03:15:22 +0000 (20:15 -0700)
committerStanislav Malyshev <stas@php.net>
Tue, 13 Sep 2016 03:15:22 +0000 (20:15 -0700)
ext/standard/file.c

index 6e17dc5d11c9c278e67b2b0ff17daa0808865648..5b051774c9956931ec192fa5c038dabdfb0d715d 100644 (file)
@@ -2336,12 +2336,6 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
 
                /* 3. Now pass our field back to php */
                *comp_end = '\0';
-#ifndef ZEND_ENABLE_ZVAL_LONG64
-               if (UNEXPECTED((comp_end - temp) > ZEND_LONG_MAX)) {
-                       zend_error_noreturn(E_WARNING, "String overflow, max size is " ZEND_LONG_FMT, ZEND_LONG_MAX);
-                       break;
-               }
-#endif
                add_next_index_stringl(return_value, temp, comp_end - temp);
        } while (inc_len > 0);