[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/basic_functions.c

From: Date: Sun, 01 Nov 2026 20:31:57 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143176@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-11-01T12:30:47-08:00 Commit: https://github.com/php/php-src/commit/9b69969a91290fb0a98c53d9e1af25bf5989262f Raw diff: https://github.com/php/php-src/commit/9b69969a91290fb0a98c53d9e1af25bf5989262f.diff [%pS migration] Use %pS in ext/standard/basic_functions.c Changed paths: M ext/standard/basic_functions.c Diff: diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cc5b587c04c8..52f57d7e8921 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1902,7 +1902,7 @@ PHP_FUNCTION(ini_parse_quantity) RETVAL_LONG(zend_ini_parse_quantity(shorthand, &errstr)); if (errstr) { - zend_error(E_WARNING, "%s", ZSTR_VAL(errstr)); + zend_error(E_WARNING, "%pS", errstr); zend_string_release(errstr); } } @@ -1948,7 +1948,7 @@ PHP_FUNCTION(ini_get_all) if (extname) { if ((module = zend_hash_find_ptr(&module_registry, extname)) == NULL) { - php_error_docref(NULL, E_WARNING, "Extension \"%s\" cannot be found", ZSTR_VAL(extname)); + php_error_docref(NULL, E_WARNING, "Extension \"%pS\" cannot be found", extname); RETURN_FALSE; } module_number = module->module_number; @@ -2419,7 +2419,7 @@ PHP_FUNCTION(move_uploaded_file) if (successful) { zend_hash_del(SG(rfc1867_uploaded_files), path); } else { - php_error_docref(NULL, E_WARNING, "Unable to move \"%s\" to \"%s\"", ZSTR_VAL(path), ZSTR_VAL(new_path)); + php_error_docref(NULL, E_WARNING, "Unable to move \"%pS\" to \"%pS\"", path, new_path); } RETURN_BOOL(successful);

« previous php.cvs (#143176) next »