|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-07 19:38 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2015-04-07 19:38 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ The build fails with -Werror=format-security Reproduce code: --------------- tk.c:736: error: format not a string literal and no format arguments tk.c:743: error: format not a string literal and no format arguments Expected result: ---------------- It should build. Actual result: -------------- Proposed fix: --- tk.c 2004-11-14 19:07:32.000000000 +0100 +++ tk.c.oden 2009-01-04 15:14:35.000000000 +0100 @@ -733,14 +733,14 @@ static void php_tk_terminal(zval *return * On arr?te l'execution en affichant une erreur fatale. */ case RETURN_WIDGET: - zend_error(E_ERROR, tk_return_value); + zend_error(E_ERROR, "%s", tk_return_value); break; /* Autre, on affiche un avertissement * et on retourne une valeur de type bool?en n?gatif, la commande a ?chou?. */ default: - zend_error(E_WARNING, tk_return_value); + zend_error(E_WARNING, "%s", tk_return_value); return_value->type = IS_BOOL; return_value->value.lval = 0;