Skip to content

Commit 1b06e0b

Browse files
vlajossmalyshev
authored andcommitted
typo fixes
1 parent d17e8ac commit 1b06e0b

File tree

101 files changed

+160
-160
lines changed

Some content is hidden

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

101 files changed

+160
-160
lines changed

Zend/README.ZEND_VM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fields and using different execution methods (call threading, switch threading
66
and direct threading). As a result ZE2 got more than 20% speedup on raw PHP
77
code execution (with specialized executor and direct threading execution
88
method). As in most PHP applications raw execution speed isn't the limiting
9-
factor but system calls and database callls are, your mileage with this patch
9+
factor but system calls and database calls are, your mileage with this patch
1010
will vary.
1111

1212
Most parts of the old zend_execute.c go into zend_vm_def.h. Here you can

Zend/tests/closure_044.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Closure 044: Scope/bounding combination invariants; non static closures
33
--FILE--
44
<?php
55
/* A non-static closure has a bound instance if it has a scope
6-
* and does't have an instance if it has no scope */
6+
* and doesn't have an instance if it has no scope */
77

88
$nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
99

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4108,7 +4108,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce TSRMLS_DC) /*
41084108
/** With the other traits, we are more permissive.
41094109
We do not give errors for those. This allows to be more
41104110
defensive in such definitions.
4111-
However, we want to make sure that the insteadof declartion
4111+
However, we want to make sure that the insteadof declaration
41124112
is consistent in itself.
41134113
*/
41144114
j = 0;

Zend/zend_vm_gen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ function usage() {
14081408
// Disabling code for old-style executor
14091409
define("ZEND_VM_OLD_EXECUTOR", 1);
14101410
} else if ($argv[$i] == "--with-lines") {
1411-
// Enabling debuging using original zend_vm_def.h
1411+
// Enabling debugging using original zend_vm_def.h
14121412
define("ZEND_VM_LINES", 1);
14131413
} else if ($argv[$i] == "--help") {
14141414
usage();

build/libtool.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
12301230
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
12311231
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
12321232
1233-
# We can hardcode non-existant directories.
1233+
# We can hardcode non-existent directories.
12341234
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
12351235
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12361236
# have to relink, otherwise we might link with an installed library

config.guess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ EOF
10801080
# uname -m prints for DJGPP always 'pc', but it prints nothing about
10811081
# the processor, so we play safe by assuming i586.
10821082
# Note: whatever this is, it MUST be the same as what config.sub
1083-
# prints for the "djgpp" host, or else GDB configury will decide that
1083+
# prints for the "djgpp" host, or else GDB configure will decide that
10841084
# this is a cross-build.
10851085
echo i586-pc-msdosdjgpp
10861086
exit ;;

ext/date/tests/bug55397.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #55397 (comparsion of incomplete DateTime causes SIGSEGV)
2+
Bug #55397 (comparison of incomplete DateTime causes SIGSEGV)
33
--INI--
44
--FILE--
55
<?php

ext/dba/dba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
888888
RETURN_FALSE;
889889
}
890890
if (hptr->flags & (DBA_NO_APPEND|DBA_CAST_AS_FD)) {
891-
/* Needed becasue some systems do not allow to write to the original
891+
/* Needed because some systems do not allow to write to the original
892892
* file contents with O_APPEND being set.
893893
*/
894894
if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) {

ext/dba/tests/dba_gdbm.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DBA GDBM handler test
1212
$lock_flag = ''; // lock in library
1313
require_once dirname(__FILE__) .'/dba_handler.inc';
1414

15-
// Read during write is system dependant. Important is that there is no deadlock
15+
// Read during write is system dependent. Important is that there is no deadlock
1616
?>
1717
===DONE===
1818
--EXPECTF--

ext/dom/tests/DOMDocument_schemaValidate_error5.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
DomDocument::schemaValidate() - non-existant schema file
2+
DomDocument::schemaValidate() - non-existent schema file
33
--CREDITS--
44
Daniel Convissor <danielc@php.net>
55
# TestFest 2009 NYPHP
@@ -12,14 +12,14 @@ $doc = new DOMDocument;
1212

1313
$doc->load(dirname(__FILE__)."/book.xml");
1414

15-
$result = $doc->schemaValidate(dirname(__FILE__)."/non-existant-file");
15+
$result = $doc->schemaValidate(dirname(__FILE__)."/non-existent-file");
1616
var_dump($result);
1717

1818
?>
1919
--EXPECTF--
20-
Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "%snon-existant-file" in %s.php on line %d
20+
Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "%snon-existent-file" in %s.php on line %d
2121

22-
Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%s/non-existant-file'. in %s.php on line %d
22+
Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%s/non-existent-file'. in %s.php on line %d
2323

2424
Warning: DOMDocument::schemaValidate(): Invalid Schema in %s.php on line %d
2525
bool(false)

ext/enchant/enchant.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ PHP_FUNCTION(enchant_broker_dict_exists)
674674
described/referred to by 'tag'. The ordering is a comma delimited
675675
list of provider names. As a special exception, the "*" tag can
676676
be used as a language tag to declare a default ordering for any
677-
language that does not explictly declare an ordering. */
677+
language that does not explicitly declare an ordering. */
678678

679679
PHP_FUNCTION(enchant_broker_set_ordering)
680680
{

ext/exif/exif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ static int exif_process_string_raw(char **result, char *value, size_t byte_count
25952595

25962596
/* {{{ exif_process_string
25972597
* Copy a string in Exif header to a character string and return length of allocated buffer if any.
2598-
* In contrast to exif_process_string this function does allways return a string buffer */
2598+
* In contrast to exif_process_string this function does always return a string buffer */
25992599
static int exif_process_string(char **result, char *value, size_t byte_count TSRMLS_DC) {
26002600
/* we cannot use strlcpy - here the problem is that we cannot use strlen to
26012601
* determin length of string and we cannot use strlcpy with len=byte_count+1

ext/fileinfo/libmagic/softmagic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m,
16301630
/* Verify we have enough data to match magic type */
16311631
switch (m->type) {
16321632
case FILE_BYTE:
1633-
if (nbytes < (offset + 1)) /* should alway be true */
1633+
if (nbytes < (offset + 1)) /* should always be true */
16341634
return 0;
16351635
break;
16361636

ext/fileinfo/tests/magic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3303,7 +3303,7 @@
33033303
>>>0x44 string =GLOB \b.
33043304
>>>>0x60 beshort x \b%.4d
33053305

3306-
# Scripts that run in the embeded Python interpreter
3306+
# Scripts that run in the embedded Python interpreter
33073307
0 string #!BPY Blender3D BPython script
33083308

33093309
#------------------------------------------------------------------------------

ext/ftp/tests/ftp_fget_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var_dump(ftp_fget($ftp, $fp, 'binary data.bin', FTP_BINARY));
2727
fseek($fp, $postition);
2828
var_dump(urlencode(fgets($fp)));
2929

30-
//test non-existant file request
30+
//test non-existent file request
3131
ftp_fget($ftp, $fp ,'a warning.txt', FTP_ASCII);
3232

3333
//remove file

ext/ftp/tests/ftp_get_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY));
2727
var_dump(urlencode(file_get_contents($tmpfname)));
2828
unlink($tmpfname);
2929

30-
//test non-existant file request
30+
//test non-existent file request
3131
ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
3232
?>
3333
--EXPECTF--

ext/gd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int overflow2(int a, int b);
104104
/* IMPORTANT NOTE FOR NEW FILTER
105105
* Do not forget to update:
106106
* IMAGE_FILTER_MAX: define the last filter index
107-
* IMAGE_FILTER_MAX_ARGS: define the biggest amout of arguments
107+
* IMAGE_FILTER_MAX_ARGS: define the biggest amount of arguments
108108
* image_filter array in PHP_FUNCTION(imagefilter)
109109
* */
110110
#define IMAGE_FILTER_NEGATE 0

ext/gd/libgd/gd_crop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x,
6969
if (src->trueColor) {
7070
unsigned int dst_y = 0;
7171
while (y < (crop->y + (crop->height - 1))) {
72-
/* TODO: replace 4 w/byte per channel||pitch once avaiable */
72+
/* TODO: replace 4 w/byte per channel||pitch once available */
7373
memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4);
7474
}
7575
} else {

ext/gd/libgd/webpimg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ WebPResult WebPDecode(const uint8* data,
8484
* height.
8585
* 6. y_stride: The width (in bytes) of one row of Y data. This may not
8686
* match width if there is end of row padding (e.g., for 32
87-
* bit row aligment).
87+
* bit row alignment).
8888
* 7. QP: the quantization parameter. This parameter controls the
8989
* compression vs quality tradeoff. Use smaller numbers for better
9090
* quality (compression will be lesser) and vice versa. 20 is a

ext/hash/tests/hash_file_error.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
2323
echo "\n-- Testing hash_file() function with an unknown algorithm --\n";
2424
var_dump( hash_file( 'foobar', $filename ) );
2525

26-
echo "\n-- Testing hash_file() function with a non-existant file --\n";
27-
var_dump( hash_file( 'md5', 'nonexistant.txt' ) );
26+
echo "\n-- Testing hash_file() function with a non-existent file --\n";
27+
var_dump( hash_file( 'md5', 'nonexistent.txt' ) );
2828

2929
echo "\n-- Testing hash_file() function with less than expected no. of arguments --\n";
3030
var_dump( hash_file( 'md5' ) );
@@ -50,7 +50,7 @@ unlink( $filename );
5050
Warning: hash_file(): Unknown hashing algorithm: %s in %s on line %d
5151
bool(false)
5252

53-
-- Testing hash_file() function with a non-existant file --
53+
-- Testing hash_file() function with a non-existent file --
5454

5555
Warning: hash_file(%s): failed to open stream: No such file or directory in %s on line %d
5656
bool(false)

ext/intl/tests/transliterator_create_error.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Transliterator::create (error)
66
<?php
77

88
ini_set("intl.error_level", E_WARNING);
9-
Transliterator::create("inexistant id");
9+
Transliterator::create("inexistent id");
1010
echo intl_get_error_message(), "\n";
1111
Transliterator::create("bad UTF-8 \x8F");
1212
echo intl_get_error_message(), "\n";
1313

1414
echo "Done.\n";
1515
--EXPECTF--
16-
Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistant id" in %s on line %d
17-
transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID
16+
Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
17+
transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
1818

1919
Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
2020
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND

ext/intl/tests/transliterator_transliterate_variant1.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo transliterator_transliterate("\x8F", $str), "\n";
1313
echo intl_get_error_message(), "\n";
1414

1515
class A {
16-
function __toString() { return "inexistant id"; }
16+
function __toString() { return "inexistent id"; }
1717
}
1818

1919
echo transliterator_transliterate(new A(), $str), "\n";
@@ -29,9 +29,9 @@ Warning: transliterator_transliterate(): Could not create transliterator with ID
2929

3030
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
3131

32-
Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "inexistant id" in %s on line %d
32+
Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
3333

34-
Warning: transliterator_transliterate(): Could not create transliterator with ID "inexistant id" (transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID) in %s on line %d
34+
Warning: transliterator_transliterate(): Could not create transliterator with ID "inexistent id" (transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID) in %s on line %d
3535

36-
transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID
36+
transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
3737
Done.

ext/ldap/tests/ldap_get_values_len_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var_dump(ldap_get_values_len($link));
2020
var_dump(ldap_get_values_len($link, $entry));
2121
var_dump(ldap_get_values_len($link, $entry, "weirdAttribute", "Additional data"));
2222

23-
var_dump(ldap_get_values_len($link, $entry, "inexistantAttribute"));
23+
var_dump(ldap_get_values_len($link, $entry, "inexistentAttribute"));
2424
?>
2525
===DONE===
2626
--CLEAN--

ext/ldap/tests/ldap_set_rebind_proc_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function rebind_proc ($ds, $ldap_url) {
3535
$link = ldap_connect($host, $port);
3636
var_dump(ldap_set_rebind_proc($link));
3737
var_dump(ldap_set_rebind_proc($link, "rebind_proc", "Additional data"));
38-
var_dump(ldap_set_rebind_proc($link, "rebind_proc_inexistant"));
38+
var_dump(ldap_set_rebind_proc($link, "rebind_proc_inexistent"));
3939
?>
4040
===DONE===
4141
--EXPECTF--
@@ -45,6 +45,6 @@ bool(false)
4545
Warning: ldap_set_rebind_proc() expects exactly 2 parameters, 3 given in %s on line %d
4646
bool(false)
4747

48-
Warning: ldap_set_rebind_proc(): Two arguments expected for 'rebind_proc_inexistant' to be a valid callback in %s on line %d
48+
Warning: ldap_set_rebind_proc(): Two arguments expected for 'rebind_proc_inexistent' to be a valid callback in %s on line %d
4949
bool(false)
5050
===DONE===

ext/mysqli/tests/mysqli_driver.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require_once('skipifconnectfailure.inc');
5353
} catch (mysqli_sql_exception $e) {
5454
$ok = true;
5555
if ('' == $e->getMessage())
56-
printf("[008] getMessage() has returned an emptry string.\n");
56+
printf("[008] getMessage() has returned an empty string.\n");
5757
if ('' == $e->getCode())
5858
printf("[009] getCode() has returned an empty string.\n");
5959
if ('' == $e->getFile())

ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mysqli_fetch_assoc() - utf8
1717
die("skip Looks like UTF8 is not available on the server");
1818

1919
if (strtolower($tmp['Charset']) !== 'utf8')
20-
die("skip Not sure if UTF8 is available, cancelling the test");
20+
die("skip Not sure if UTF8 is available, canceling the test");
2121

2222
mysqli_free_result($res);
2323

@@ -28,7 +28,7 @@ mysqli_fetch_assoc() - utf8
2828
die("skip Looks like UCS2 is not available on the server");
2929

3030
if (strtolower($tmp['Charset']) !== 'ucs2')
31-
die("skip Not sure if UCS2 is available, cancelling the test");
31+
die("skip Not sure if UCS2 is available, canceling the test");
3232

3333
mysqli_free_result($res);
3434
mysqli_close($link);

ext/mysqli/tests/mysqli_options.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require_once('skipifconnectfailure.inc');
1212

1313
$valid_options = array(
1414
MYSQLI_READ_DEFAULT_GROUP => "MYSQLI_READ_DEFAULT_GROUP",
15-
MYSQLI_READ_DEFAULT_FILE => "MYSQLI_READ_DEFAUTL_FILE",
15+
MYSQLI_READ_DEFAULT_FILE => "MYSQLI_READ_DEFAULT_FILE",
1616
MYSQLI_OPT_CONNECT_TIMEOUT => "MYSQLI_OPT_CONNECT_TIMEOUT",
1717
MYSQLI_OPT_LOCAL_INFILE => "MYSQLI_OPT_LOCAL_INFILE",
1818
MYSQLI_INIT_COMMAND => "MYSQLI_INIT_COMMAND",

ext/oci8/tests/bug43492_2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require(dirname(__FILE__).'/skipif.inc');
88
--FILE--
99
<?php
1010

11-
// This test is similar to bug43492.phpt without the explict free.
11+
// This test is similar to bug43492.phpt without the explicit free.
1212
// Now that bug 44206 is fixed an automatic clean up will occur -
1313
// though it is still recommended in practice.
1414

ext/odbc/php_odbc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@ PHP_FUNCTION(odbc_num_rows)
27042704

27052705
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
27062706
/* {{{ proto bool odbc_next_result(resource result_id)
2707-
Checks if multiple results are avaiable */
2707+
Checks if multiple results are available */
27082708
PHP_FUNCTION(odbc_next_result)
27092709
{
27102710
odbc_result *result;

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static inline int is_stream_path(const char *filename)
138138
return ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/'));
139139
}
140140

141-
static inline int is_cachable_stream_path(const char *filename)
141+
static inline int is_cacheable_stream_path(const char *filename)
142142
{
143143
return memcmp(filename, "file://", sizeof("file://") - 1) == 0 ||
144144
memcmp(filename, "phar://", sizeof("phar://") - 1) == 0;
@@ -1459,7 +1459,7 @@ static zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int
14591459
CG(interactive) ||
14601460
(ZCSG(restart_in_progress) && accel_restart_is_active(TSRMLS_C)) ||
14611461
(is_stream_path(file_handle->filename) &&
1462-
!is_cachable_stream_path(file_handle->filename))) {
1462+
!is_cacheable_stream_path(file_handle->filename))) {
14631463
/* The Accelerator is disabled, act as if without the Accelerator */
14641464
return accelerator_orig_compile_file(file_handle, type TSRMLS_CC);
14651465
}

ext/opcache/zend_accelerator_util_funcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script,
936936
zend_hash_destroy(&ZCG(bind_hash));
937937
}
938938
/* we must first to copy all classes and then prepare functions, since functions may try to bind
939-
classes - which depend on pre-bind class entries existant in the class table */
939+
classes - which depend on pre-bind class entries existent in the class table */
940940
if (zend_hash_num_elements(&persistent_script->function_table) > 0) {
941941
zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, (unique_copy_ctor_func_t)zend_prepare_function_for_execution);
942942
}

ext/pcntl/php_signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "Zend/zend.h"
2424
#include "Zend/zend_signal.h"
2525

26-
/* php_signal using sigaction is derrived from Advanced Programing
26+
/* php_signal using sigaction is derived from Advanced Programing
2727
* in the Unix Environment by W. Richard Stevens p 298. */
2828
Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all)
2929
{

ext/pcre/tests/preg_grep_error1.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
1111
* Testing how preg_grep reacts to being passed bad regexes
1212
*/
1313
echo "*** Testing preg_grep() : error conditions ***\n";
14-
$values = array('abcdef', //Regex without delimeter
15-
'/[a-zA-Z]', //Regex without closing delimeter
16-
'[a-zA-Z]/', //Regex without opening delimeter
14+
$values = array('abcdef', //Regex without delimiter
15+
'/[a-zA-Z]', //Regex without closing delimiter
16+
'[a-zA-Z]/', //Regex without opening delimiter
1717
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
1818
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
1919
);

ext/pcre/tests/preg_match_all_error1.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
1111
* Testing how preg_match_all reacts to being passed the wrong type of regex argument
1212
*/
1313
echo "*** Testing preg_match_all() : error conditions ***\n";
14-
$regex_array = array('abcdef', //Regex without delimeter
15-
'/[a-zA-Z]', //Regex without closing delimeter
16-
'[a-zA-Z]/', //Regex without opening delimeter
14+
$regex_array = array('abcdef', //Regex without delimiter
15+
'/[a-zA-Z]', //Regex without closing delimiter
16+
'[a-zA-Z]/', //Regex without opening delimiter
1717
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
1818
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
1919
);

0 commit comments

Comments
 (0)