Skip to content

Commit 221b9d4

Browse files
committed
Merge pull request #4 from weltling/string_size_refactor_take_2
String size refactor take 2
2 parents 6bd00ed + 0773ab4 commit 221b9d4

File tree

635 files changed

+13275
-3744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

635 files changed

+13275
-3744
lines changed

CODING_STANDARDS

+4-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,10 @@ The file labelled 'EXPERIMENTAL' should include the following
259259
information::
260260

261261
Any authoring information (known bugs, future directions of the module).
262-
Ongoing status notes which may not be appropriate for SVN comments.
262+
Ongoing status notes which may not be appropriate for Git comments.
263+
264+
In general new features should go to PECL or experimental branches until
265+
there are specific reasons for directly adding it to the core distribution.
263266

264267
Aliases & Legacy Documentation
265268
-----------------------------------

INSTALL

+2-2
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ Installation
18191819
set of HTTP headers. The headers it did return are:
18201820
10. Windows: I've followed all the instructions, but still can't get
18211821
PHP and IIS to work together!
1822-
11. When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami, I get
1822+
11. When running PHP as CGI with IIS, OmniHTTPD or Xitami, I get
18231823
the following error: Security Alert! PHP CGI cannot be accessed
18241824
directly..
18251825
12. How do I know if my php.ini is being found and read? It seems like
@@ -2007,7 +2007,7 @@ cgi error:
20072007
And for IIS4 you need to tell it that PHP is a script engine.
20082008
Also, you will want to read this faq.
20092009

2010-
When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami, I get the
2010+
When running PHP as CGI with IIS, OmniHTTPD or Xitami, I get the
20112011
following error: Security Alert! PHP CGI cannot be accessed
20122012
directly..
20132013
You must set the cgi.force_redirect directive to 0. It defaults

Makefile.global

+12-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ all: $(all_targets)
1010
@echo "Build complete."
1111
@echo "Don't forget to run 'make test'."
1212
@echo
13-
13+
1414
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
1515

1616
build-binaries: $(PHP_BINARIES)
@@ -115,10 +115,19 @@ clean:
115115
find . -name \*.la -o -name \*.a | xargs rm -f
116116
find . -name \*.so | xargs rm -f
117117
find . -name .libs -a -type d|xargs rm -rf
118-
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
118+
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/*
119119

120120
distclean: clean
121-
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
121+
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h
122+
rm -f php5.spec main/build-defs.h scripts/phpize
123+
rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak
124+
rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1
125+
rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html
126+
rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h
127+
rm -f ext/phar/phar.phar ext/phar/phar.php
128+
if test "$(srcdir)" != "$(builddir)"; then \
129+
rm -f ext/phar/phar/phar.inc; \
130+
fi
122131
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
123132

124133
.PHONY: all clean install distclean test

NEWS

+13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ PHP NEWS
77
. Implemented internal operator overloading
88
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
99

10+
- Session:
11+
. Fixed Bug #65315 (session.hash_function silently fallback to default md5)
12+
(Yasuo)
13+
. Implemented Request #54649 (Create session_serializer_name()). (Yasuo)
14+
. Implemented Request #17860 (Session write short circuit). (Yasuo)
15+
. Implemented Request #20421 (session_abort() and session_reset() function).
16+
(Yasuo)
17+
. Implemented Request #11100 (session_gc() function). (Yasuo)
18+
19+
- mysqlnd:
20+
. Disabled flag for SP OUT variables for 5.5+ servers as they are not natively
21+
supported by the overlying APIs. (Andrey)
22+
1023
- OPcache:
1124
. Added an optimization pass to convert FCALL_BY_NAME into DO_FCALL.
1225
(Laruence, Dmitry)

README.EXTENSIONS

-39
This file was deleted.

README.PHP4-TO-PHP5-THIN-CHANGES

-155
This file was deleted.

README.STREAMS

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Opening Streams
4646
===============
4747
In most cases, you should use this API:
4848

49-
PHPAPI php_stream *php_stream_open_wrapper(char *path, char *mode,
49+
PHPAPI php_stream *php_stream_open_wrapper(const char *path, const char *mode,
5050
int options, char **opened_path TSRMLS_DC);
5151

5252
Where:

README.SUBMITTING_PATCH

+14-14
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This document describes how to submit an enhancement or patch for PHP.
55
It's easy!
66

77
You don't need any login accounts or special access to download,
8-
build, debug and begin submitting PHP, PECL or PEAR code, tests or
8+
build, debug and begin submitting PHP or PECL code, tests or
99
documentation. Once you've followed this README and had several
1010
patches accepted, commit privileges are often quickly granted.
1111

@@ -16,8 +16,8 @@ http://phpadvent.org/2008/less-whining-more-coding-by-elizabeth-smith
1616
Online Forums
1717
-------------
1818
There are several IRC channels where PHP developers are often
19-
available to discuss questions. They include #php.pecl, #php.doc and
20-
#pear on the EFNet network and #php-dev-win on FreeNode.
19+
available to discuss questions. They include #php.pecl and #php.doc
20+
on the EFNet network and #php-dev-win on FreeNode.
2121

2222

2323
PHP Patches
@@ -78,7 +78,7 @@ of type 'text/*' are accepted.
7878
PECL Extension Patches: http://pecl.php.net/
7979
--------------------------------------------
8080
If you are fixing broken functionality in a PECL extension then create
81-
a bug or identify an existing bug at http://pecl.php.net/bugs/. A bug
81+
a bug or identify an existing bug at http://bugs.php.net/. A bug
8282
can be used to track the patch progress and prevent your changes
8383
getting lost in the PHP mail archives.
8484

@@ -114,15 +114,15 @@ http://pear.php.net/manual/en/guide-developers.php
114114

115115
How to create your PHP, PHP Documentation or PECL patch
116116
-------------------------------------------------------
117-
PHP and PECL use Subversion (SVN) for revision control. Read
118-
http://www.php.net/svn.php for help on using SVN to get and build PHP
119-
source code. We recommend using a Sparse Directory checkout described
120-
in http://wiki.php.net/vcs/svnfaq. If you are new to SVN, read
121-
http://svnbook.red-bean.com.
117+
PHP and most PECL packages use Git for revision control. Some PECL
118+
packages use Subversion (SVN) Read http://www.php.net/git.php for help
119+
on using Git to get and build PHP source code. We recommend to look
120+
at our workflow on https://wiki.php.net/vcs/gitworkflow and our FAQ
121+
https://wiki.php.net/vcs/gitfaq.
122122

123123
Generally we ask that bug fix patches work on the current stable PHP
124-
development branches and on "trunk". New PHP features only need to
125-
work on "trunk".
124+
development branches and on "master". New PHP features only need to
125+
work on "master".
126126

127127
Read CODING_STANDARDS before you start working.
128128

@@ -134,15 +134,15 @@ comprehensive.
134134

135135
After testing is finished, create a patch file using the command:
136136

137-
svn diff > your_patch.txt
137+
git diff > your_patch.txt
138138

139139
For ease of review and later troubleshooting, submit individual
140140
patches for each bug or feature.
141141

142142

143143
Checklist for submitting your PHP or PECL code patch
144144
----------------------------------------------------
145-
- Update SVN source just before running your final 'diff' and
145+
- Update git source just before running your final 'diff' and
146146
before testing.
147147
- Add in-line comments and/or have external documentation ready.
148148
Use only "/* */" style comments, not "//".
@@ -175,7 +175,7 @@ about these questions:
175175

176176
What happens when your PHP or PECL patch is applied
177177
---------------------------------------------------
178-
Your name will likely be included in the SVN commit log. If your
178+
Your name will likely be included in the Git commit log. If your
179179
patch affects end users, a brief description and your name might be
180180
added to the NEWS file.
181181

TSRM/tsrm_virtual_cwd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC) /* {{{ */
16731673
}
16741674
/* }}} */
16751675

1676-
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC) /* {{{ */
1676+
CWD_API int virtual_rename(const char *oldname, const char *newname TSRMLS_DC) /* {{{ */
16771677
{
16781678
cwd_state old_state;
16791679
cwd_state new_state;

TSRM/tsrm_virtual_cwd.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC);
161161
CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC);
162162
CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...);
163163
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC);
164-
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC);
164+
CWD_API int virtual_rename(const char *oldname, const char *newname TSRMLS_DC);
165165
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
166166
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
167167
CWD_API int virtual_unlink(const char *path TSRMLS_DC);

0 commit comments

Comments
 (0)