Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 46fa168

Browse files
committedDec 27, 2017
updated docs, binaries
1 parent a0036d8 commit 46fa168

26 files changed

+100
-104
lines changed
 

‎build_curl.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,13 @@ CURL_LFLAGS = /nologo /out:$(DIRDIST)\bin\$(PROGRAM_NAME) /SUBSYSTEM:CONSOLE,5
6161
## Compile
6262
1. Open the command prompt and enter the build directory:
6363
```
64-
cd c:\php-sdk\extensions\curl\curl-7.50.3\winbuild
64+
cd c:\php-sdk\extensions
6565
```
6666
2. Run:
6767
```
68-
C:\php-sdk\phpdev\vc11\xXX\xpinitxXX.bat
68+
buildcurlXX.bat
6969
```
70-
3. Run, for **x86**:
71-
```
72-
nmake /f Makefile.vc mode=static VC=11 USE_IDN=0 WITH_SSL=static WITH_DEVEL="..\..\..\phpdev\vc11\x86\deps"
73-
```
74-
4. Run, for **x64**:
75-
```
76-
nmake /f Makefile.vc mode=static VC=11 USE_IDN=0 WITH_SSL=static WITH_DEVEL="..\..\..\phpdev\vc11\x64\deps" MACHINE=x64
77-
```
78-
5. Destination folder for binaries:
70+
3. Destination folder for binaries:
7971
```
8072
C:\php-sdk\extensions\curl-7.50.3\builds\libcurl-vc11-xXX-release-static-ipv6-sspi
8173
```

‎build_php.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -377,18 +377,7 @@ TLSVar tls_tq_timer = {0};
377377
```
378378
cd c:\php-sdk\phpdev\vc11\xXX
379379
```
380-
2. Run: `buildphp.bat`
380+
2. Run: `buildphpXX.bat`
381381
3. Destination folder for binaries:
382382
* For **x86**: `C:\php-sdk\phpdev\vc11\x86\php-5.6.24-src\Release_TS`
383383
* For **x64**: `C:\php-sdk\phpdev\vc11\x64\php-5.6.24-src\x64\Release_TS`
384-
385-
## VII. Compile for XDebug
386-
1. Open the command prompt and switch to the build directory:
387-
```
388-
cd c:\php-sdk\phpdev\vc11\xXX
389-
```
390-
2. Run: `buildphp-xdebug.bat`
391-
3. Destination folder for binaries:
392-
* For **x86**: `C:\php-sdk\phpdev\vc11\x86\php-5.6.24-src\Release_TS`
393-
* For **x64**: `C:\php-sdk\phpdev\vc11\x64\php-5.6.24-src\x64\Release_TS`
394-

‎build_xdebug.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static int poll(struct pollfd fds[], int nfds, int timeout)
102102
```
103103

104104
## Compile
105-
1. Build PHP as described in **Compile for XDebug** section of [build_php.md](https://github.com/ProgerXP/php-5.6-xp/blob/master/build_php.md)
105+
1. Build PHP as described in [build_php.md](https://github.com/ProgerXP/php-5.6-xp/blob/master/build_php.md)
106106
2. Open the command prompt and switch to the build directory:
107107
```
108108
cd c:\php-sdk\extensions

‎extensions/buildcurl64.bat

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd curl-7.50.3\winbuild
2+
SET XPD_PHP_SRC=..\..\phpdev\vc11\x64\php-5.6.24-src
3+
call %XPD_PHP_SRC%\..\xpinitx64.bat
4+
nmake /f Makefile.vc mode=static VC=11 USE_IDN=0 WITH_SSL=static WITH_DEVEL="..\..\..\phpdev\vc11\x64\deps" MACHINE=x64
5+
cd ..\..

‎extensions/buildcurl86.bat

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd curl-7.50.3\winbuild
2+
SET XPD_PHP_SRC=..\..\phpdev\vc11\x86\php-5.6.24-src
3+
call %XPD_PHP_SRC%\..\xpinitx86.bat
4+
nmake /f Makefile.vc mode=static VC=11 USE_IDN=0 WITH_SSL=static WITH_DEVEL="..\..\..\phpdev\vc11\x86\deps"
5+
cd ..\..

‎extensions/xdebug-2.5.5.patch

+45-24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Only in xdebug-2.5.5: buildxdebug.bat
21
Only in xdebug-2.5.5: config.nice.bat
32
Only in xdebug-2.5.5: configure.bat
43
Only in xdebug-2.5.5: configure.js
@@ -7,7 +6,7 @@ Only in xdebug-2.5.5: Makefile.objects
76
Only in xdebug-2.5.5: Release_TS
87
diff -r -u xdebug-2.5.5-origin\xdebug.c xdebug-2.5.5\xdebug.c
98
--- xdebug-2.5.5-origin\xdebug.c Tue Jun 20 17:44:03 2017
10-
+++ xdebug-2.5.5\xdebug.c Thu Nov 30 04:39:02 2017
9+
+++ xdebug-2.5.5\xdebug.c Wed Dec 27 02:55:06 2017
1110
@@ -37,7 +37,7 @@
1211
#endif
1312

@@ -19,8 +18,16 @@ diff -r -u xdebug-2.5.5-origin\xdebug.c xdebug-2.5.5\xdebug.c
1918
#include "ext/standard/html.h"
2019
diff -r -u xdebug-2.5.5-origin\xdebug_com.c xdebug-2.5.5\xdebug_com.c
2120
--- xdebug-2.5.5-origin\xdebug_com.c Tue Jun 20 17:44:03 2017
22-
+++ xdebug-2.5.5\xdebug_com.c Thu Nov 30 01:44:40 2017
23-
@@ -49,6 +49,55 @@
21+
+++ xdebug-2.5.5\xdebug_com.c Wed Dec 27 22:00:13 2017
22+
@@ -41,7 +41,6 @@
23+
# include <mstcpip.h>
24+
# pragma comment (lib, "Ws2_32.lib")
25+
# define PATH_MAX MAX_PATH
26+
-# define poll WSAPoll
27+
#endif
28+
29+
#include "xdebug_private.h"
30+
@@ -49,6 +48,59 @@
2431

2532
ZEND_EXTERN_MODULE_GLOBALS(xdebug)
2633

@@ -43,42 +50,56 @@ diff -r -u xdebug-2.5.5-origin\xdebug_com.c xdebug-2.5.5\xdebug_com.c
4350
+#define POLLHUP 0x0002
4451
+#define POLLNVAL 0x0004
4552
+
46-
+#define WSAPoll(fd,nfd,t) poll(fd,nfd,t)
47-
+
48-
+// Original source:
49-
+// http://www.slac.stanford.edu/accel/ilc/codes/ATF2/control-software/epics-3.14.10/support/asyn/asyn-4-11/asyn/drvAsynSerial/drvAsynIPPort.c
50-
+/*
51-
+ * Use select() to simulate enough of poll() to get by.
52-
+ */
53-
+
5453
+static int poll(struct pollfd fds[], int nfds, int timeout)
5554
+{
56-
+ fd_set fdset;
55+
+ int retval;
56+
+ fd_set rset, wrset, exset;
5757
+ struct timeval tv, *ptv;
58-
+
59-
+ // assert(nfds == 1);
60-
+ FD_ZERO(&fdset);
61-
+ FD_SET(fds[0].fd,&fdset);
58+
+ FD_ZERO(&rset);
59+
+ FD_ZERO(&wrset);
60+
+ FD_ZERO(&exset);
61+
+ FD_SET(fds[0].fd, &rset);
62+
+ FD_SET(fds[0].fd, &wrset);
63+
+ FD_SET(fds[0].fd, &exset);
64+
+ fds[0].revents = 0;
6265
+ if (timeout >= 0) {
6366
+ tv.tv_sec = timeout / 1000;
6467
+ tv.tv_usec = (timeout % 1000) * 1000;
6568
+ ptv = &tv;
6669
+ } else {
6770
+ ptv = NULL;
6871
+ }
69-
+ return select(fds[0].fd + 1,
70-
+ (fds[0].events & POLLIN) ? &fdset : NULL,
71-
+ (fds[0].events & POLLOUT) ? &fdset : NULL,
72-
+ NULL,
73-
+ ptv);
72+
+ retval = select(0, &rset, &wrset, &exset, ptv);
73+
+ if (retval == 1) {
74+
+ if (FD_ISSET(fds[0].fd, &rset)) {
75+
+ fds[0].revents |= POLLIN;
76+
+ }
77+
+ if (FD_ISSET(fds[0].fd, &wrset)) {
78+
+ fds[0].revents |= POLLOUT;
79+
+ }
80+
+ if (FD_ISSET(fds[0].fd, &exset)) {
81+
+ fds[0].revents |= POLLERR;
82+
+ }
83+
+ }
84+
+ return retval;
7485
+}
7586
+
7687
int xdebug_create_socket(const char *hostname, int dport TSRMLS_DC)
7788
{
7889
struct addrinfo hints;
90+
@@ -159,7 +211,7 @@
91+
92+
#if WIN32|WINNT
93+
errno = WSAGetLastError();
94+
- if (errno == WSAEINPROGRESS || errno == WSAEWOULDBLOCK) {
95+
+ if (errno == WSAEINPROGRESS) {
96+
/* XXX introduce retry count? */
97+
continue;
98+
}
99+
Only in xdebug-2.5.5: xdebug_com.c.bak
79100
diff -r -u xdebug-2.5.5-origin\xdebug_handler_dbgp.c xdebug-2.5.5\xdebug_handler_dbgp.c
80101
--- xdebug-2.5.5-origin\xdebug_handler_dbgp.c Tue Jun 20 17:44:03 2017
81-
+++ xdebug-2.5.5\xdebug_handler_dbgp.c Thu Nov 30 04:39:06 2017
102+
+++ xdebug-2.5.5\xdebug_handler_dbgp.c Wed Dec 27 02:55:06 2017
82103
@@ -24,7 +24,7 @@
83104
#endif
84105

@@ -90,7 +111,7 @@ diff -r -u xdebug-2.5.5-origin\xdebug_handler_dbgp.c xdebug-2.5.5\xdebug_handler
90111
#include "ext/standard/url.h"
91112
diff -r -u xdebug-2.5.5-origin\xdebug_superglobals.c xdebug-2.5.5\xdebug_superglobals.c
92113
--- xdebug-2.5.5-origin\xdebug_superglobals.c Tue Jun 20 17:44:03 2017
93-
+++ xdebug-2.5.5\xdebug_superglobals.c Thu Nov 30 04:39:09 2017
114+
+++ xdebug-2.5.5\xdebug_superglobals.c Wed Dec 27 02:55:06 2017
94115
@@ -21,7 +21,7 @@
95116
#include "xdebug_var.h"
96117
#include "xdebug_compat.h"

‎phpdev/vc11/x64/buildphp-xdebug.bat

-7
This file was deleted.
File renamed without changes.

‎phpdev/vc11/x64/xpinitx64.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE%
2-
set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
1+
set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE%
2+
set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
33
set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Lib\x64;%LIB%

‎phpdev/vc11/x86/buildphp-xdebug.bat

-7
This file was deleted.
File renamed without changes.

‎release/php-with-static-xdebug.zip

-5.72 MB
Binary file not shown.

‎release/x64/ext/php_curl.dll

0 Bytes
Binary file not shown.

‎release/x64/ext/php_fileinfo.dll

0 Bytes
Binary file not shown.

‎release/x64/ext/php_xdebug.dll

0 Bytes
Binary file not shown.

‎release/x64/php.exe

0 Bytes
Binary file not shown.

‎release/x64/php5apache2_4.dll

0 Bytes
Binary file not shown.

‎release/x64/php5ts.dll

0 Bytes
Binary file not shown.

‎release/x64/phpinfo.txt

+17-18
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ phpinfo()
22
PHP Version => 5.6.24
33

44
System => Windows NT HUMMER 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64
5-
Build Date => Nov 29 2017 23:02:42
5+
Build Date => Dec 27 2017 23:20:15
66
Compiler => MSVC11 (Visual C++ 2012)
77
Architecture => x64
88
Configure Command => cscript /nologo configure.js "--disable-all" "--enable-cli" "--with-curl" "--enable-calendar" "--enable-ctype" "--enable-fileinfo" "--enable-filter" "--with-gd" "--enable-hash" "--with-iconv" "--enable-json" "--enable-mbstring" "--with-mcrypt" "--with-mysqli" "--with-mysqlnd" "--with-openssl" "--enable-pdo" "--with-pdo-mysql" "--enable-session" "--enable-zlib" "--with-bz2" "--with-libxml" "--with-dom" "--enable-exif" "--with-gettext" "--with-gmp" "--with-mysql" "--with-pdo-pgsql" "--with-pgsql" "--with-pdo-sqlite" "--enable-phar" "--with-simplexml" "--enable-sockets" "--enable-tokenizer" "--with-sqlite3" "--with-xml" "--enable-xmlreader" "--enable-xmlwriter" "--enable-zip" "--with-xmlrpc" "--enable-apache2-4handler"
@@ -153,7 +153,7 @@ date/time support => enabled
153153
"Olson" Timezone Database Version => 2016.6
154154
Timezone Database => internal
155155

156-
Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\Work\git\php-5.6-xp\php-5.6.24-xp-x64-bin\phpinfo.php on line 2
156+
Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\Work\git\php-5.6-xp\release\x64\phpinfo.php on line 2
157157
Default timezone => UTC
158158

159159
Directive => Local Value => Master Value
@@ -181,7 +181,7 @@ Regex Library => Bundled library enabled
181181
exif
182182

183183
EXIF Support => enabled
184-
EXIF Version => 1.4 $Id: bffe98d3a9e6c6ccc5a3881247b97a4dff781b15 $
184+
EXIF Version => 1.4 $Id: 5564de4b4a8fd6b32ae8bd44debf9f13b18c7768 $
185185
Supported EXIF Version => 0220
186186
Supported filetypes => JPEG,TIFF
187187

@@ -196,7 +196,7 @@ exif.encode_unicode => ISO-8859-15 => ISO-8859-15
196196
filter
197197

198198
Input Validation and Filtering => enabled
199-
Revision => $Id: da8df1bb3bb0938d3ce41928c41d0d7b9fb15b22 $
199+
Revision => $Id: 0a967738ca580e8bfdacb06853749743fc79b969 $
200200

201201
Directive => Local Value => Master Value
202202
filter.default => unsafe_raw => unsafe_raw
@@ -235,7 +235,7 @@ MPIR version => 2.7.2
235235
hash
236236

237237
hash support => enabled
238-
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
238+
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
239239

240240
iconv
241241

@@ -287,8 +287,8 @@ mcrypt support => enabled
287287
mcrypt_filter support => enabled
288288
Version => 2.5.8
289289
Api No => 20021217
290-
Supported ciphers => cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour
291-
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream
290+
Supported ciphers => cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour
291+
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream
292292

293293
Directive => Local Value => Master Value
294294
mcrypt.algorithms_dir => no value => no value
@@ -351,7 +351,7 @@ Tracing => n/a
351351
Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
352352
API Extensions => mysql,mysqli,pdo_mysql
353353

354-
mysqlnd statistics =>
354+
mysqlnd statistics =>
355355
bytes_sent => 0
356356
bytes_received => 0
357357
packets_sent => 0
@@ -549,7 +549,7 @@ pdo_pgsql
549549
PDO Driver for PostgreSQL => enabled
550550
PostgreSQL(libpq) Version => 9.4.5
551551
Module version => 1.0.2
552-
Revision => $Id: 4261489546839c995e4a7d6fe4c015b505fcbb79 $
552+
Revision => $Id: 0e858dd2051ca8c2fd3c781909a0670ab5fecd36 $
553553

554554
pdo_sqlite
555555

@@ -579,7 +579,7 @@ Phar
579579
Phar: PHP Archive support => enabled
580580
Phar EXT version => 2.0.2
581581
Phar API version => 1.1.1
582-
SVN revision => $Id: 5c9332ae6a1bbfaff769679849f727f96a83cc89 $
582+
SVN revision => $Id: 14b80e175ed4d5bf11c890e1f30ea8225935b16c $
583583
Phar-based phar archives => enabled
584584
Tar-based phar archives => enabled
585585
ZIP-based phar archives => enabled
@@ -599,13 +599,13 @@ phar.require_hash => On => On
599599
Reflection
600600

601601
Reflection => enabled
602-
Version => $Id: 13fa82dc7f81b596eaa69822751011bc4b8879c4 $
602+
Version => $Id: fbcf7a77ca8e3d4cd7501de8025235b947b8240f $
603603

604604
session
605605

606606
Session Support => enabled
607-
Registered save handlers => files user
608-
Registered serializer handlers => php_serialize php php_binary
607+
Registered save handlers => files user
608+
Registered serializer handlers => php_serialize php php_binary
609609

610610
Directive => Local Value => Master Value
611611
session.auto_start => Off => Off
@@ -642,7 +642,7 @@ session.use_trans_sid => 0 => 0
642642
SimpleXML
643643

644644
Simplexml support => enabled
645-
Revision => $Id: 81eb4d1df57a422dc4bcf9697a14ecf7f3dcb0fe $
645+
Revision => $Id: 07fc6546e896094aed794aea4691f0151774d955 $
646646
Schema support => enabled
647647

648648
sockets
@@ -837,9 +837,9 @@ _SERVER["PHP_SELF"] => phpinfo.php
837837
_SERVER["SCRIPT_NAME"] => phpinfo.php
838838
_SERVER["SCRIPT_FILENAME"] => phpinfo.php
839839
_SERVER["PATH_TRANSLATED"] => phpinfo.php
840-
_SERVER["DOCUMENT_ROOT"] =>
841-
_SERVER["REQUEST_TIME_FLOAT"] => 1511972604.4414
842-
_SERVER["REQUEST_TIME"] => 1511972604
840+
_SERVER["DOCUMENT_ROOT"] =>
841+
_SERVER["REQUEST_TIME_FLOAT"] => 1514391887.4059
842+
_SERVER["REQUEST_TIME"] => 1514391887
843843
_SERVER["argv"] => Array
844844
(
845845
[0] => phpinfo.php
@@ -906,4 +906,3 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
906906

907907
If you did not receive a copy of the PHP license, or have any
908908
questions about PHP licensing, please contact license@php.net.
909-

‎release/x86/ext/php_curl.dll

0 Bytes
Binary file not shown.

‎release/x86/ext/php_fileinfo.dll

0 Bytes
Binary file not shown.

‎release/x86/ext/php_xdebug.dll

0 Bytes
Binary file not shown.

‎release/x86/php.exe

0 Bytes
Binary file not shown.

‎release/x86/php5apache2_4.dll

0 Bytes
Binary file not shown.

‎release/x86/php5ts.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)