]> granicus.if.org Git - php/commitdiff
Avoid sending NULL argument to printf
authorZeev Suraski <zeev@php.net>
Thu, 8 Jul 1999 17:15:43 +0000 (17:15 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 8 Jul 1999 17:15:43 +0000 (17:15 +0000)
main/main.c

index cff04cc4a335eb88e1ceaf1addb3c7486eea8f26..71bc4d603f714c4af144ea466474d49832473fcb 100644 (file)
@@ -574,13 +574,13 @@ static void php_message_handler_for_zend(long message, void *data)
                case ZMSG_FAILED_INCLUDE_FOPEN: {
                                PLS_FETCH();
 
-                               php3_error(E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path));
+                               php3_error(E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php3_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
                        }
                        break;
                case ZMSG_FAILED_REQUIRE_FOPEN: {
                                PLS_FETCH();
 
-                               php3_error(E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path));
+                               php3_error(E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php3_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
                        }
                        break;
                case ZMSG_FAILED_HIGHLIGHT_FOPEN: