Skip to content

Commit c793a65

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: non living code related typo fixes Conflicts: Zend/zend_compile.c
2 parents 3626db6 + 8d86597 commit c793a65

Some content is hidden

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

48 files changed

+50
-50
lines changed

Zend/tests/traits/bugs/overridding-conflicting-methods.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Overridding Conflicting Methods should not result in a notice/warning about collisions
2+
Overriding Conflicting Methods should not result in a notice/warning about collisions
33
--FILE--
44
<?php
55
error_reporting(E_ALL);

Zend/zend_builtin_functions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
23812381
MAKE_STD_ZVAL(arg_array);
23822382
array_init(arg_array);
23832383

2384-
/* include_filename always points to the last filename of the last last called-fuction.
2384+
/* include_filename always points to the last filename of the last last called-function.
23852385
if we have called include in the frame above - this is the file we have included.
23862386
*/
23872387

Zend/zend_compile.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
17341734
}
17351735

17361736
{
1737-
/* Push a seperator to the switch stack */
1737+
/* Push a separator to the switch stack */
17381738
zend_switch_entry switch_entry;
17391739

17401740
switch_entry.cond.op_type = IS_UNUSED;
@@ -1828,7 +1828,7 @@ void zend_do_end_function_declaration(const znode *function_token TSRMLS_DC) /*
18281828
CG(active_op_array) = function_token->u.op_array;
18291829

18301830

1831-
/* Pop the switch and foreach seperators */
1831+
/* Pop the switch and foreach separators */
18321832
zend_stack_del_top(&CG(switch_cond_stack));
18331833
zend_stack_del_top(&CG(foreach_copy_stack));
18341834
}
@@ -2671,7 +2671,7 @@ static int generate_free_foreach_copy(const zend_op *foreach_copy TSRMLS_DC) /*
26712671
{
26722672
zend_op *opline;
26732673

2674-
/* If we reach the seperator then stop applying the stack */
2674+
/* If we reach the separator then stop applying the stack */
26752675
if (foreach_copy->result_type == IS_UNUSED && foreach_copy->op1_type == IS_UNUSED) {
26762676
return 1;
26772677
}

Zend/zend_execute_API.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ ZEND_API int zend_lookup_class_ex(const char *name, int name_length, const zend_
10541054
}
10551055

10561056
/* The compiler is not-reentrant. Make sure we __autoload() only during run-time
1057-
* (doesn't impact fuctionality of __autoload()
1057+
* (doesn't impact functionality of __autoload()
10581058
*/
10591059
if (!use_autoload || zend_is_compiling(TSRMLS_C)) {
10601060
if (!key) {

Zend/zend_globals.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ struct _zend_php_scanner_globals {
302302
unsigned char *script_filtered;
303303
size_t script_filtered_size;
304304

305-
/* input/ouput filters */
305+
/* input/output filters */
306306
zend_encoding_filter input_filter;
307307
zend_encoding_filter output_filter;
308308
const zend_encoding *script_encoding;

Zend/zend_language_scanner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef struct _zend_lex_state {
4545
unsigned char *script_filtered;
4646
size_t script_filtered_size;
4747

48-
/* input/ouput filters */
48+
/* input/output filters */
4949
zend_encoding_filter input_filter;
5050
zend_encoding_filter output_filter;
5151
const zend_encoding *script_encoding;

configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ cat <<X
15821582
| see the file debug.log for error messages. |
15831583
| |
15841584
| If you are unable to fix this, send the file debug.log to the |
1585-
| [email protected] mailing list and include appropiate |
1585+
| [email protected] mailing list and include appropriate |
15861586
| information about your setup. |
15871587
X
15881588
fi

ext/date/php_date.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb)
13961396
}
13971397
/* }}} */
13981398

1399-
/* {{{ php_parse_date: Backwards compability function */
1399+
/* {{{ php_parse_date: Backwards compatibility function */
14001400
PHPAPI signed long php_parse_date(char *string, signed long *now)
14011401
{
14021402
timelib_time *parsed_time;

ext/date/php_date.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ZEND_END_MODULE_GLOBALS(date)
182182
#define DATEG(v) (date_globals.v)
183183
#endif
184184

185-
/* Backwards compability wrapper */
185+
/* Backwards compatibility wrapper */
186186
PHPAPI signed long php_parse_date(char *string, signed long *now);
187187
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);
188188
PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC);

ext/dom/tests/bug44648.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #44648 (Attribute names not checked for wellformedness)
2+
Bug #44648 (Attribute names not checked for well formedness)
33
--SKIPIF--
44
<?php require_once('skipif.inc'); ?>
55
--FILE--

ext/fileinfo/tests/magic

+1-1
Original file line numberDiff line numberDiff line change
@@ -11969,7 +11969,7 @@
1196911969
#>65 string ZSYS (Pre-System 7 system file)
1197011970
#>65 string acf3 (Aldus FreeHand)
1197111971
#>65 string cdev (control panel)
11972-
#>65 string dfil (Desk Acessory suitcase)
11972+
#>65 string dfil (Desk Accessory suitcase)
1197311973
#>65 string libr (library)
1197411974
#>65 string nX^d (WriteNow word processor)
1197511975
#>65 string nX^w (WriteNow dictionary)

ext/ftp/ftp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#ifdef PHP_WIN32
4040
#include <winsock2.h>
4141
#elif defined(NETWARE)
42-
#ifdef USE_WINSOCK /* Modified to use Winsock (NOVSOCK2.H), atleast for now */
42+
#ifdef USE_WINSOCK /* Modified to use Winsock (NOVSOCK2.H), at least for now */
4343
#include <novsock2.h>
4444
#else
4545
#include <sys/socket.h>

ext/mbstring/oniguruma/HISTORY

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ History
878878
2004/10/18: [impl] (thanks Imai Yasumasa)
879879
enclose #include <sys/types.h> by #ifndef __BORLANDC__.
880880
2004/10/18: [bug] (thanks Imai Yasumasa)
881-
memory acess violation in select_opt_exact_info().
881+
memory access violation in select_opt_exact_info().
882882
2004/09/25: [dist] fix doc/API and doc/API.ja.
883883
2004/09/25: [bug] fix OP_SEMI_END_BUF process in match_at() for
884884
the case USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE

ext/mbstring/tests/mb_http_output.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mb_http_output()
44
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
55
--FILE--
66
<?php
7-
//TODO: Add more encoding. Wrong paramter type test.
7+
//TODO: Add more encoding. Wrong parameter type test.
88
//$debug = true;
99
ini_set('include_path', dirname(__FILE__));
1010
include_once('common.inc');

ext/mysql/php_mysql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ PHP_FUNCTION(mysql_result)
19221922

19231923
/*
19241924
johannes TODO:
1925-
Do 2 zend_parse_paramters calls instead of type "z" and switch below
1925+
Do 2 zend_parse_parameters calls instead of type "z" and switch below
19261926
Q: String or long first?
19271927
*/
19281928
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|z", &result, &row, &field) == FAILURE) {

ext/mysqli/tests/mysqli_get_client_stats.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ mysqlnd.collect_memory_statistics=1
166166
mysqli_get_client_stats_assert_gt('bytes_sent', $info, $expected, $test_counter);
167167
mysqli_get_client_stats_assert_gt('bytes_received', $info, $expected, $test_counter);
168168

169-
// real_data_* get incremeneted after mysqli_*fetch*()
169+
// real_data_* get incremented after mysqli_*fetch*()
170170
mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, "0", $test_counter);
171171
mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, "0", $test_counter);
172172

ext/mysqlnd/mysqlnd_net.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ MYSQLND_METHOD(mysqlnd_net, consume_uneaten_data)(MYSQLND_NET * const net, enum
805805
/*
806806
Switch to non-blocking mode and try to consume something from
807807
the line, if possible, then continue. This saves us from looking for
808-
the actuall place where out-of-order packets have been sent.
808+
the actual place where out-of-order packets have been sent.
809809
If someone is completely sure that everything is fine, he can switch it
810810
off.
811811
*/

ext/pdo_pgsql/tests/bug_33876.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ else
8282
# false -> "" as string, which pgsql doesn't like
8383
if (!$res->execute(array(false))) {
8484
$err = $res->errorInfo();
85-
// Strip additional lines ouputted by recent PgSQL versions
85+
// Strip additional lines outputted by recent PgSQL versions
8686
$err[2] = trim(current(explode("\n", $err[2])));
8787
print_r($err);
8888
} else {

ext/posix/tests/posix_ctermid.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PHP Testfest Berlin 2009-05-10
1313
}
1414
// needed because of #ifdef HAVE_CTERMID in posix.c
1515
if (!function_exists('posix_ctermid')) {
16-
die('SKIP - Fuction posix_ctermid() not available');
16+
die('SKIP - Function posix_ctermid() not available');
1717
}
1818
?>
1919
--FILE--

ext/reflection/php_reflection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5259,7 +5259,7 @@ ZEND_METHOD(reflection_extension, getVersion)
52595259
/* }}} */
52605260

52615261
/* {{{ proto public ReflectionFunction[] ReflectionExtension::getFunctions()
5262-
Returns an array of this extension's fuctions */
5262+
Returns an array of this extension's functions */
52635263
ZEND_METHOD(reflection_extension, getFunctions)
52645264
{
52655265
reflection_object *intern;

ext/session/tests/020.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
rewriter uses arg_seperator.output for modifying URLs
2+
rewriter uses arg_separator.output for modifying URLs
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--

ext/spl/internal/splobjectstorage.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @since PHP 5.1.2
1717
*
1818
* This container allows to store objects uniquly without the need to compare
19-
* them one by one. This is only possible internally. The code represenation
19+
* them one by one. This is only possible internally. The code representation
2020
* here therefore has a complexity of O(n) while the actual implementation has
2121
* complexity O(1).
2222
*/

ext/spl/spl.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class Exception
260260
/** The exception message */
261261
protected $message;
262262

263-
/** The string represenations as generated during construction */
263+
/** The string representations as generated during construction */
264264
private $string;
265265

266266
/** The code passed to the constructor */
@@ -336,7 +336,7 @@ final public function getTraceAsString()
336336
{
337337
}
338338

339-
/** @return string represenation of exception
339+
/** @return string representation of exception
340340
*/
341341
public function __toString()
342342
{

ext/spl/tests/spl_priorityqeue_insert_two_params_error.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
SPL: priorityQueue paramter test on insert method
2+
SPL: priorityQueue parameter test on insert method
33
--CREDITS--
44
Sean Burlington www.practicalweb.co.uk
55
TestFest London May 2009

ext/sqlite3/libsqlite/sqlite3.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -12731,7 +12731,7 @@ struct VdbeFunc {
1273112731
*/
1273212732
struct sqlite3_context {
1273312733
FuncDef *pFunc; /* Pointer to function information. MUST BE FIRST */
12734-
VdbeFunc *pVdbeFunc; /* Auxilary data, if created. */
12734+
VdbeFunc *pVdbeFunc; /* Auxiliary data, if created. */
1273512735
Mem s; /* The return value is stored here */
1273612736
Mem *pMem; /* Memory cell used to store aggregate context */
1273712737
int isError; /* Error code returned by the function. */
@@ -44929,7 +44929,7 @@ SQLITE_PRIVATE int sqlite3WalOpen(
4492944929
}
4493044930

4493144931
/*
44932-
** Change the size to which the WAL file is trucated on each reset.
44932+
** Change the size to which the WAL file is truncated on each reset.
4493344933
*/
4493444934
SQLITE_PRIVATE void sqlite3WalLimit(Wal *pWal, i64 iLimit){
4493544935
if( pWal ) pWal->mxWalSize = iLimit;
@@ -59355,7 +59355,7 @@ static int vdbeCommit(sqlite3 *db, Vdbe *p){
5935559355

5935659356
/* The complex case - There is a multi-file write-transaction active.
5935759357
** This requires a master journal file to ensure the transaction is
59358-
** committed atomicly.
59358+
** committed atomically.
5935959359
*/
5936059360
#ifndef SQLITE_OMIT_DISKIO
5936159361
else{
@@ -61383,7 +61383,7 @@ SQLITE_API void *sqlite3_aggregate_context(sqlite3_context *p, int nByte){
6138361383
}
6138461384

6138561385
/*
61386-
** Return the auxilary data pointer, if any, for the iArg'th argument to
61386+
** Return the auxiliary data pointer, if any, for the iArg'th argument to
6138761387
** the user-function defined by pCtx.
6138861388
*/
6138961389
SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
@@ -61398,7 +61398,7 @@ SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
6139861398
}
6139961399

6140061400
/*
61401-
** Set the auxilary data pointer and delete function, for the iArg'th
61401+
** Set the auxiliary data pointer and delete function, for the iArg'th
6140261402
** argument to the user-function defined by pCtx. Any previous value is
6140361403
** deleted by calling the delete function specified when it was set.
6140461404
*/
@@ -63408,7 +63408,7 @@ SQLITE_PRIVATE int sqlite3VdbeExec(
6340863408
}
6340963409
#endif
6341063410

63411-
/* On any opcode with the "out2-prerelase" tag, free any
63411+
/* On any opcode with the "out2-prerelease" tag, free any
6341263412
** external allocations out of mem[p2] and set mem[p2] to be
6341363413
** an undefined integer. Opcodes will either fill in the integer
6341463414
** value or convert mem[p2] to a different type.

ext/standard/pack.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static long php_unpack(char *data, int size, int issigned, int *map)
514514

515515
/* unpack() is based on Perl's unpack(), but is modified a bit from there.
516516
* Rather than depending on error-prone ordered lists or syntactically
517-
* unpleasant pass-by-reference, we return an object with named paramters
517+
* unpleasant pass-by-reference, we return an object with named parameters
518518
* (like *_fetch_object()). Syntax is "f[repeat]name/...", where "f" is the
519519
* formatter char (like pack()), "[repeat]" is the optional repeater argument,
520520
* and "name" is the name of the variable to use.

ext/standard/tests/array/array_count_values_variation.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test array_count_values() function : Test all normal paramter variations
2+
Test array_count_values() function : Test all normal parameter variations
33
--FILE--
44
<?php
55
/* Prototype : proto array array_count_values(array input)
@@ -9,7 +9,7 @@ Test array_count_values() function : Test all normal paramter variations
99
*/
1010

1111
/*
12-
* Test behaviour with paramter variations
12+
* Test behaviour with parameter variations
1313
*/
1414

1515
echo "*** Testing array_count_values() : parameter variations ***\n";

ext/standard/tests/file/chmod_basic-win32.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
chmod() basic fuctionality
2+
chmod() basic functionality
33
--SKIPIF--
44
<?php
55
if (substr(PHP_OS, 0, 3) != 'WIN') {

ext/standard/tests/file/chmod_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
chmod() basic fuctionality
2+
chmod() basic functionality
33
--SKIPIF--
44
<?php
55
if (substr(PHP_OS, 0, 3) == 'WIN') {
1 Byte
Binary file not shown.

ext/standard/tests/strings/str_replace.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var_dump($count);
120120
echo "\n-- Testing objects --\n";
121121
/* we get "Catchable fatal error: saying Object of class could not be converted
122122
to string" by default, when an object is passed instead of string:
123-
The error can be avoided by chosing the __toString magix method as follows: */
123+
The error can be avoided by choosing the __toString magix method as follows: */
124124

125125
class subject
126126
{

ext/standard/tests/strings/str_replace_variation3.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var_dump($count);
3333
echo "\n-- Testing objects --\n";
3434
/* we get "Catchable fatal error: saying Object of class could not be converted
3535
to string" by default, when an object is passed instead of string:
36-
The error can be avoided by chosing the __toString magix method as follows: */
36+
The error can be avoided by choosing the __toString magix method as follows: */
3737

3838
class subject
3939
{
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.

ext/tidy/tidy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ static PHP_FUNCTION(tidy_get_config)
14431443
/* }}} */
14441444

14451445
/* {{{ proto int tidy_get_status()
1446-
Get status of specfied document. */
1446+
Get status of specified document. */
14471447
static PHP_FUNCTION(tidy_get_status)
14481448
{
14491449
TIDY_FETCH_OBJECT;

ext/xmlrpc/libxmlrpc/xml_to_soap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ XMLRPC_VALUE xml_element_to_SOAP_REQUEST_worker(XMLRPC_REQUEST request,
279279
else if (!strcmp(attr_iter->key, TOKEN_MUSTUNDERSTAND)) {
280280
b_must_understand = strchr(attr_iter->val, '1') ? 1 : 0;
281281
}
282-
/* actor, used in conjuction with must understand. */
282+
/* actor, used in conjunction with must understand. */
283283
else if (!strcmp(attr_iter->key, TOKEN_ACTOR)) {
284284
actor = attr_iter->val;
285285
}

sapi/apache/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if test "$PHP_APXS" != "no"; then
5959
# Test that we're trying to configure with apache 1.x
6060
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
6161
if test "$APACHE_VERSION" -ge 2000000; then
62-
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2])
62+
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2])
6363
fi
6464

6565
for flag in $APXS_CFLAGS; do

sapi/apache2filter/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if test "$PHP_APXS2FILTER" != "no"; then
6262
# Test that we're trying to configure with apache 2.x
6363
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
6464
if test "$APACHE_VERSION" -le 2000000; then
65-
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)])
65+
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)])
6666
elif test "$APACHE_VERSION" -lt 2000040; then
6767
AC_MSG_ERROR([Please note that Apache version >= 2.0.40 is required])
6868
fi

sapi/apache2handler/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if test "$PHP_APXS2" != "no"; then
6161
# Test that we're trying to configure with apache 2.x
6262
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
6363
if test "$APACHE_VERSION" -le 2000000; then
64-
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)])
64+
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)])
6565
elif test "$APACHE_VERSION" -lt 2000044; then
6666
AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required])
6767
fi

sapi/apache_hooks/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if test "$PHP_APACHE_HOOKS" != "no"; then
6060
# Test that we're trying to configure with apache 1.x
6161
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
6262
if test "$APACHE_VERSION" -ge 2000000; then
63-
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2])
63+
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2])
6464
fi
6565

6666
for flag in $APXS_CFLAGS; do

0 commit comments

Comments
 (0)