com php-src: Merge branch 'PHP-7.4': Zend/zend_execute.c ext/standard/file.c

From: Date: Wed, 12 Jun 2019 11:18:04 +0000
Subject: com php-src: Merge branch 'PHP-7.4': Zend/zend_execute.c ext/standard/file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106725@lists.php.net to get a copy of this message
Commit: eea206a06c6fcbcbabc590d287dc529588520095 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 13:18:04 +0200 Parents: fc7b3cc7ca523d703a0270b79011ed4725ed942f 65ff4dddba3110433eefbfc1f3539a8fc6a3ffec Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eea206a06c6fcbcbabc590d287dc529588520095 Log: Merge branch 'PHP-7.4' Changed paths: MM Zend/zend_execute.c MM ext/standard/file.c Diff: diff --cc ext/standard/file.c index 32f21fb,a651c87..cf11fae --- a/ext/standard/file.c +++ b/ext/standard/file.c @@@ -694,10 -694,10 +694,10 @@@ PHP_FUNCTION(file_put_contents if (Z_OBJ_HT_P(data) != NULL) { zval out; - if (zend_std_cast_object_tostring(data, &out, IS_STRING) == SUCCESS) { + if (zend_std_cast_object_tostring(Z_OBJ_P(data), &out, IS_STRING) == SUCCESS) { numbytes = php_stream_write(stream, Z_STRVAL(out), Z_STRLEN(out)); if (numbytes != Z_STRLEN(out)) { - php_error_docref(NULL, E_WARNING, "Only "ZEND_LONG_FMT" of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN(out)); + php_error_docref(NULL, E_WARNING, "Only %zd of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN(out)); numbytes = -1; } zval_ptr_dtor_str(&out);

« previous php.cvs (#106725) next »