Skip to content

Instantly share code, notes, and snippets.

$ type ext\zip\tests\compression_methods.diff
001+ store: bool(false)
002+ deflate: bool(false)
003+ deflate64: bool(false)
004+ bzip2: bool(false)
005+ lzma: bool(false)
006+ ppmd: bool(false)
001- store: bool(true)
002- deflate: bool(true)
003- deflate64: bool(true)
I've reverted the last fix locally and did the further investigation.
In further, I observe two processes, the values shown at the same bp in 1. and 2.
I. ZendAccelerator.c:517, bp condition strncmp(p->key->val, "phpversion", 10) == 0
1.
0x0000023e8dc89500 local permanent
0x00001000009e3050 in shm
bug73725 3674-49b4 ENTER SQLSetEnvAttr
SQLHENV 0x0000000000000000
SQLINTEGER 201 <SQL_ATTR_CONNECTION_POOLING>
SQLPOINTER 2 <SQL_CP_ONE_PER_HENV>
SQLINTEGER 0
bug73725 3674-49b4 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
SQLHENV 0x0000000000000000
SQLINTEGER 201 <SQL_ATTR_CONNECTION_POOLING>
SQLPOINTER 2 <SQL_CP_ONE_PER_HENV>
set PDO_FIREBIRD_TEST_DSN=firebird:dbname=127.0.0.1:E:\local_programs\Firebird-2.5.5.26952-0_x64\examples\empbuild\EMPLOYEE.FDB
set PDO_FIREBIRD_TEST_USER=SYSDBA
set PDO_FIREBIRD_TEST_PASS=masterkey
set PATH=E:\local_programs\Firebird-2.5.5.26952-0_x64\bin;%PATH%
--- a/xdebug_com.c
+++ b/xdebug_com.c
@@ -60,7 +60,7 @@ int xdebug_create_socket(const char *hostname, int dport TSRMLS_DC)
struct sockaddr_in6 sa;
socklen_t size = sizeof(sa);
#if WIN32|WINNT
- WSAPOLLFD ufds[1];
+ WSAPOLLFD ufds[1] = {0};
WORD wVersionRequested;
WSADATA wsaData;
--- a/xdebug_com.c
+++ b/xdebug_com.c
@@ -59,17 +59,18 @@ int xdebug_create_socket(const char *hostname, int dport TSRMLS_DC)
int actually_connected;
struct sockaddr_in6 sa;
socklen_t size = sizeof(sa);
- struct pollfd ufds[1];
#if WIN32|WINNT
+ WSAPOLLFD ufds[1];
WORD wVersionRequested;
diff --git a/ext/pcre/tests/bug72463.phpt b/ext/pcre/tests/bug72463.phpt
index b6ac971..3d38494 100644
--- a/ext/pcre/tests/bug72463.phpt
+++ b/ext/pcre/tests/bug72463.phpt
@@ -3,11 +3,16 @@ Bug #72463 mail fails with invalid argument
--FILE--
<?php
+if(substr(PHP_OS, 0, 3) == "WIN") {
+ ini_set("smtp", "non.existent.smtp.server");
#! /bin/sh
#
# Created by configure
'./configure' \
'--build=x86_64-linux-gnu' \
'--host=x86_64-linux-gnu' \
'--prefix=/home/weltling/dws/root/php-7.0.8-ts-httpd-2.4' \
'--with-config-file-path=/home/weltling/dws/root/php-7.0.8-ts-httpd-2.4/etc' \
'--with-regex=php' \
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 461bef4..d15c8a0 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -50,6 +50,10 @@
#include <unistd.h>
#endif
+#if HAVE_LIMITS_H
+#include <limits.h>
Application cmdline: "c:\tmp\drmemory_test\php.exe -d output_handler= -d open_basedir= -d safe_mode=0 -d disable_functions= -d output_buffering=Off -d error_reporting=32767 -d display_errors=1 -d display_startup_errors=1 -d log_errors=0 -d html_errors=0 -d track_errors=1 -d report_memleaks=1 -d report_zend_debug=0 -d docref_root= -d docref_ext=.html -d error_prepend_string= -d error_append_string= -d auto_prepend_file= -d auto_append_file= -d magic_quotes_runtime=0 -d ignore_repeated_errors=0 -d precision=14 -d memory_limit=128M -d log_errors_max_len=0 -d opcache.fast_shutdown=0 -d opcache.file_update_protection=0 -f C:\php-sdk\php70\vc14\x86\php-src\Zend\tests\break_error_001.php"
Recorded 116 suppression(s) from default c:\tmp\drmemory_test\DrMemory-Windows-1.9.0-4\bin\suppress-default.txt
Recorded 2 suppression(s) from user c:\tmp\drmemory_test\suppress.txt
WARNING: application is missing line number information.
Error #1: LEAK 132 direct bytes 0x00ef2df0-0x00ef2e74 + 2052 indirect bytes
# 0 replace_mall