]> granicus.if.org Git - php/commitdiff
fix format strings
authorSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 15:54:35 +0000 (15:54 +0000)
committerSascha Schumann <sas@php.net>
Thu, 28 Aug 2003 15:54:35 +0000 (15:54 +0000)
ext/standard/exec.c

index 45494432f5c0aef90ae29cbaecff5e01ea691622..4fc2a07d39fb6411661451176252717687d064b9 100644 (file)
@@ -752,13 +752,13 @@ PHP_FUNCTION(proc_open)
 #ifdef PHP_WIN32
                        descriptors[ndesc].childend = dup_fd_as_handle(fd);
                        if (descriptors[ndesc].childend == NULL) {
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to dup File-Handle for descriptor %d", nindex);
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to dup File-Handle for descriptor %lu", nindex);
                                goto exit_fail;
                        }
 #else
                        descriptors[ndesc].childend = dup(fd);
                        if (descriptors[ndesc].childend < 0) {
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to dup File-Handle for descriptor %d - %s", nindex, strerror(errno));
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to dup File-Handle for descriptor %lu - %s", nindex, strerror(errno));
                                goto exit_fail;
                        }
 #endif
@@ -783,7 +783,7 @@ PHP_FUNCTION(proc_open)
                                if (zend_hash_index_find(Z_ARRVAL_PP(descitem), 1, (void **)&zmode) == SUCCESS) {
                                        convert_to_string_ex(zmode);
                                } else {
-                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing mode parameter for 'pipe'", Z_STRVAL_PP(ztype));
+                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing mode parameter for 'pipe'");
                                        goto exit_fail;
                                }
 
@@ -825,14 +825,14 @@ PHP_FUNCTION(proc_open)
                                if (zend_hash_index_find(Z_ARRVAL_PP(descitem), 1, (void **)&zfile) == SUCCESS) {
                                        convert_to_string_ex(zfile);
                                } else {
-                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing file name parameter for 'file'", Z_STRVAL_PP(ztype));
+                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing file name parameter for 'file'");
                                        goto exit_fail;
                                }
 
                                if (zend_hash_index_find(Z_ARRVAL_PP(descitem), 2, (void **)&zmode) == SUCCESS) {
                                        convert_to_string_ex(zmode);
                                } else {
-                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing mode parameter for 'file'", Z_STRVAL_PP(ztype));
+                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Missing mode parameter for 'file'");
                                        goto exit_fail;
                                }