diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-16 09:46:47 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-16 09:46:47 +0100 |
| commit | 0b4778c377a5753a0deb9cfc697d4f62acf93a29 (patch) | |
| tree | 1513cbdabd00e0c43ed9750107787791060a8398 /ext | |
| parent | 9d7e03c325473024e54c864f0379efc1bbf03e72 (diff) | |
| download | php-git-0b4778c377a5753a0deb9cfc697d4f62acf93a29.tar.gz | |
Fix #78880: Another bunch of spelling errors
Diffstat (limited to 'ext')
94 files changed, 116 insertions, 116 deletions
diff --git a/ext/dom/dom_fe.h b/ext/dom/dom_fe.h index 30b5396b1f..ce8e1e4ade 100644 --- a/ext/dom/dom_fe.h +++ b/ext/dom/dom_fe.h @@ -94,7 +94,7 @@ PHP_METHOD(domdocument, getElementById); PHP_METHOD(domdocument, adoptNode); PHP_METHOD(domdocument, normalizeDocument); PHP_METHOD(domdocument, __construct); - /* convienience methods */ + /* convenience methods */ PHP_METHOD(domdocument, load); PHP_METHOD(domdocument, save); PHP_METHOD(domdocument, loadXML); diff --git a/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt b/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt index cccfff9a65..b4da4a48aa 100644 --- a/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt +++ b/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt @@ -8,7 +8,7 @@ include('skipif.inc'); <?php /* Create an XML document - * with strcuture + * with structure * <book> * <title>This is the title</title> * </book> diff --git a/ext/filter/tests/022.phpt b/ext/filter/tests/022.phpt index 91aca3e632..9621e9a8ab 100644 --- a/ext/filter/tests/022.phpt +++ b/ext/filter/tests/022.phpt @@ -7,7 +7,7 @@ filter_var() and FILTER_SANITIZE_EMAIL var_dump(filter_var("a@b.c", FILTER_SANITIZE_EMAIL)); var_dump(filter_var("a[!@#$%^&*()@a@#$%^&*(.com@#$%^&*(", FILTER_SANITIZE_EMAIL)); -var_dump(filter_var("white space here \ \ \" som more", FILTER_SANITIZE_EMAIL)); +var_dump(filter_var("white space here \ \ \" some more", FILTER_SANITIZE_EMAIL)); var_dump(filter_var("", FILTER_SANITIZE_EMAIL)); var_dump(filter_var("123456789000000", FILTER_SANITIZE_EMAIL)); @@ -16,7 +16,7 @@ echo "Done\n"; --EXPECT-- string(5) "a@b.c" string(30) "a[!@#$%^&*@a@#$%^&*.com@#$%^&*" -string(21) "whitespaceheresommore" +string(22) "whitespaceheresomemore" string(0) "" string(15) "123456789000000" Done diff --git a/ext/gmp/tests/003.phpt b/ext/gmp/tests/003.phpt index 5179b73a1b..49b69c7d3a 100644 --- a/ext/gmp/tests/003.phpt +++ b/ext/gmp/tests/003.phpt @@ -20,7 +20,7 @@ Check for number base recognition $test[] = gmp_init("1234"); $test[] = gmp_init("1234", 10); - /* Hexidecimal */ + /* Hexadecimal */ $test[] = gmp_init("0x4d2"); $test[] = gmp_init("0x4d2", 16); $test[] = gmp_init("4d2"); diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php index e1b1534008..06d19318f5 100644 --- a/ext/imap/php_imap.stub.php +++ b/ext/imap/php_imap.stub.php @@ -50,7 +50,7 @@ function imap_fetchmime($stream_id, int $msg_no, string $section, int $options = /** * @param resource $stream_id - * @todo: should $file be `resouce|string`? it looks like it tries to accept anything? + * @todo: should $file be `resource|string`? it looks like it tries to accept anything? */ function imap_savebody($stream_id, $file, int $msg_no, string $section = '', int $options = 0): bool {} diff --git a/ext/mysqli/tests/bug49442.phpt b/ext/mysqli/tests/bug49442.phpt index d9093f0347..4c57a5c48b 100644 --- a/ext/mysqli/tests/bug49442.phpt +++ b/ext/mysqli/tests/bug49442.phpt @@ -67,7 +67,7 @@ mysqli.max_persistent=1 mysqlnd makes a connection created through mysql_init()/mysqli_real_connect() always a 'persistent' one. At this point 'persistent' is not to be confused with what a user calls a 'persistent' - in this case 'persistent' means that mysqlnd uses malloc() instead of emalloc(). nothing else. ext/mysqli will - not consider it as a 'persistent' connection in a user sense, ext/mysqli will not appy max_persistent etc. + not consider it as a 'persistent' connection in a user sense, ext/mysqli will not apply max_persistent etc. Its only about malloc() vs. emalloc(). However, the bug is about malloc() and efree(). You can make make mysqlnd use malloc() by either using diff --git a/ext/mysqli/tests/bug51647.phpt b/ext/mysqli/tests/bug51647.phpt index cd7ccf8017..816a612d5a 100644 --- a/ext/mysqli/tests/bug51647.phpt +++ b/ext/mysqli/tests/bug51647.phpt @@ -65,7 +65,7 @@ $link->close(); if (!$row = $res->fetch_assoc()) printf("[006] [%d] %s\n", $link->errno, $link->error); if (!strlen($row["Value"])) - printf("[007] Empty cipher. No encrytion!"); + printf("[007] Empty cipher. No encryption!"); var_dump($row); } @@ -95,7 +95,7 @@ $link->close(); if (!$row = $res->fetch_assoc()) printf("[012] [%d] %s\n", $link->errno, $link->error); if (!strlen($row["Value"])) - printf("[013] Empty cipher. No encrytion!"); + printf("[013] Empty cipher. No encryption!"); var_dump($row); } diff --git a/ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt b/ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt index 7f858e0216..5e5df14e4d 100644 --- a/ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt +++ b/ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt @@ -75,7 +75,7 @@ die("skip Check again when the Klingons visit earth - http://bugs.mysql.com/bug. mysqli_free_result($res); if ($meta != $expected_lib) { - printf("[%04d - %s] Metadata differes from expected values\n", + printf("[%04d - %s] Metadata differs from expected values\n", $offset + 5, $sql); var_dump($meta); var_dump($expected_lib); diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 7155e610b3..9eb0f15efb 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1090,7 +1090,7 @@ int php_oci_bind_post_exec(zval *data) break; } } else if ((Z_TYPE_P(zv) == IS_TRUE) || (Z_TYPE_P(zv) == IS_FALSE)) { - /* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */ + /* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temporary value) */ if (Z_LVAL_P(zv) == 0) ZVAL_BOOL(zv, FALSE); else if (Z_LVAL_P(zv) == 1) @@ -1409,12 +1409,12 @@ sb4 php_oci_bind_in_callback( } else if (phpbind->statement != 0) { /* RSET */ *bufpp = phpbind->statement; - *alenp = -1; /* seems to be allright */ + *alenp = -1; /* seems to be alright */ *indpp = (dvoid *)&phpbind->indicator; } else { /* descriptor bind */ *bufpp = phpbind->descriptor; - *alenp = -1; /* seems to be allright */ + *alenp = -1; /* seems to be alright */ *indpp = (dvoid *)&phpbind->indicator; } diff --git a/ext/oci8/package.xml b/ext/oci8/package.xml index 4b1981201a..b9366a1775 100644 --- a/ext/oci8/package.xml +++ b/ext/oci8/package.xml @@ -713,7 +713,7 @@ to conform with the license. </stability> <license uri="http://www.php.net/license">PHP</license> <notes> -Bump PHP OCI8 2.0 mininum requirements to PHP 5.2 and Oracle client +Bump PHP OCI8 2.0 minimum requirements to PHP 5.2 and Oracle client library 10.2. (Use OCI8 1.4 for older PHP version support or if only Oracle 9.2 client libraries are available.) diff --git a/ext/oci8/tests/bug44113.phpt b/ext/oci8/tests/bug44113.phpt index 8a48d6aff0..ec6668db3d 100644 --- a/ext/oci8/tests/bug44113.phpt +++ b/ext/oci8/tests/bug44113.phpt @@ -21,7 +21,7 @@ oci8_test_sql_execute($c, $stmtarray); // Run Test // The test can take some time to complete and can exceed PHP's test -// timout limit on slow networks. +// timeout limit on slow networks. for ($x = 0; $x < 70000; $x++) { if (!($var = oci_new_collection($c, 'BUG44113_LIST_T'))) { diff --git a/ext/oci8/tests/drcp_conn_close1.phpt b/ext/oci8/tests/drcp_conn_close1.phpt index 18ed1cec72..71a070eadb 100644 --- a/ext/oci8/tests/drcp_conn_close1.phpt +++ b/ext/oci8/tests/drcp_conn_close1.phpt @@ -13,7 +13,7 @@ require __DIR__."/details.inc"; // Test will open a connection // Close the connection // Open another connection -// With oci_close() being a no-op, the same conneciton will be returned +// With oci_close() being a no-op, the same connection will be returned echo "This is with a OCI_CONNECT\n"; diff --git a/ext/oci8/tests/drcp_conn_close2.phpt b/ext/oci8/tests/drcp_conn_close2.phpt index 4a20c9cf72..7939e53d9e 100644 --- a/ext/oci8/tests/drcp_conn_close2.phpt +++ b/ext/oci8/tests/drcp_conn_close2.phpt @@ -14,7 +14,7 @@ require __DIR__."/details.inc"; // Close the connection // Open another connection // With oci_close() the connection is released to the pool and hence the -// the second conneciton will be different +// the second connection will be different // OCI_CONNECT diff --git a/ext/oci8/tests/drcp_pconn_close1.phpt b/ext/oci8/tests/drcp_pconn_close1.phpt index 83dad880d9..df0caa2433 100644 --- a/ext/oci8/tests/drcp_pconn_close1.phpt +++ b/ext/oci8/tests/drcp_pconn_close1.phpt @@ -13,7 +13,7 @@ require __DIR__."/details.inc"; // Test will open a persistent connection // Close the connection // Open another connection -// With oci_close() being a no-op, the same conneciton will be returned +// With oci_close() being a no-op, the same connection will be returned echo "This is with a OCI_PCONNECT\n"; var_dump($conn1 = oci_pconnect($user,$password,$dbase)); diff --git a/ext/oci8/tests/password_new.phpt b/ext/oci8/tests/password_new.phpt index 6e9d2f4780..c0e53001df 100644 --- a/ext/oci8/tests/password_new.phpt +++ b/ext/oci8/tests/password_new.phpt @@ -2,7 +2,7 @@ oci_password_change() --SKIPIF-- <?php -$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes +$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs require(__DIR__.'/skipif.inc'); require(__DIR__.'/connect.inc'); if (empty($dbase)) die ("skip requires database connection string be set"); diff --git a/ext/oci8/tests/password_old.phpt b/ext/oci8/tests/password_old.phpt index f791e25c3a..a92dba4366 100644 --- a/ext/oci8/tests/password_old.phpt +++ b/ext/oci8/tests/password_old.phpt @@ -2,7 +2,7 @@ ocipasswordchange() --SKIPIF-- <?php -$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes +$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs require(__DIR__.'/skipif.inc'); require(__DIR__.'/connect.inc'); if (empty($dbase)) die ("skip requires database connection string be set"); diff --git a/ext/opcache/Optimizer/optimize_temp_vars_5.c b/ext/opcache/Optimizer/optimize_temp_vars_5.c index 825091bfc3..6f7400159d 100644 --- a/ext/opcache/Optimizer/optimize_temp_vars_5.c +++ b/ext/opcache/Optimizer/optimize_temp_vars_5.c @@ -102,7 +102,7 @@ void zend_optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_c if (!zend_bitset_in(valid_T, currT)) { int use_new_var = 0; - /* Code in "finally" blocks may modify temorary variables. + /* Code in "finally" blocks may modify temporary variables. * We allocate new temporaries for values that need to * relive FAST_CALLs. */ diff --git a/ext/opcache/Optimizer/zend_cfg.c b/ext/opcache/Optimizer/zend_cfg.c index 66c15be311..c5b1b53a0e 100644 --- a/ext/opcache/Optimizer/zend_cfg.c +++ b/ext/opcache/Optimizer/zend_cfg.c @@ -93,7 +93,7 @@ static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_bloc b = succ; break; } else { - /* Recusively check reachability */ + /* Recursively check reachability */ if (!(succ->flags & ZEND_BB_REACHABLE)) { zend_mark_reachable(opcodes, cfg, succ); } diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c index 0b1f967a93..64680be745 100644 --- a/ext/opcache/Optimizer/zend_ssa.c +++ b/ext/opcache/Optimizer/zend_ssa.c @@ -854,7 +854,7 @@ int zend_build_ssa(zend_arena **arena, const zend_script *script, const zend_op_ ALLOCA_FLAG(var_use_heap) if ((blocks_count * (op_array->last_var + op_array->T)) > 4 * 1024 * 1024) { - /* Don't buld SSA for very big functions */ + /* Don't build SSA for very big functions */ return FAILURE; } diff --git a/ext/opcache/Optimizer/zend_ssa.h b/ext/opcache/Optimizer/zend_ssa.h index ef83b97fcb..935a3cd9aa 100644 --- a/ext/opcache/Optimizer/zend_ssa.h +++ b/ext/opcache/Optimizer/zend_ssa.h @@ -215,7 +215,7 @@ static zend_always_inline zend_bool zend_ssa_is_no_val_use(const zend_op *opline if (opline->opcode == ZEND_ASSIGN || opline->opcode == ZEND_UNSET_CV) { return ssa_op->op1_use == var && ssa_op->op2_use != var; } - // TODO: Reenable this after changing the SSA structure. + // TODO: Re-enable this after changing the SSA structure. /*if (opline->opcode == ZEND_FE_FETCH_R) { return ssa_op->op2_use == var && ssa_op->op1_use != var; }*/ diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index f6cf7962f1..0e62f37659 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -3133,7 +3133,7 @@ void accel_shutdown(void) #endif if (!_file_cache_only) { - /* Delay SHM dettach */ + /* Delay SHM detach */ orig_post_shutdown_cb = zend_post_shutdown_cb; zend_post_shutdown_cb = accel_post_shutdown; } diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 6c4c316890..2716434a04 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -6870,7 +6870,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend /* Reuse reserved arguments stack */ res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 0x20); #else - /* CPU stack alocated temorary zval */ + /* CPU stack alocated temporary zval */ res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 8); #endif } diff --git a/ext/opcache/tests/opt/sccp_017.phpt b/ext/opcache/tests/opt/sccp_017.phpt index c2bc6f35fb..6e05163b7c 100644 --- a/ext/opcache/tests/opt/sccp_017.phpt +++ b/ext/opcache/tests/opt/sccp_017.phpt @@ -1,5 +1,5 @@ --TEST-- -SCCP 017: Array assignemnt +SCCP 017: Array assignment --INI-- opcache.enable=1 opcache.enable_cli=1 diff --git a/ext/opcache/tests/opt/sccp_018.phpt b/ext/opcache/tests/opt/sccp_018.phpt index 66a4b6ca15..dd1407dcec 100644 --- a/ext/opcache/tests/opt/sccp_018.phpt +++ b/ext/opcache/tests/opt/sccp_018.phpt @@ -1,5 +1,5 @@ --TEST-- -SCCP 018: Object assignemnt +SCCP 018: Object assignment --INI-- opcache.enable=1 opcache.enable_cli=1 diff --git a/ext/opcache/tests/opt/sccp_019.phpt b/ext/opcache/tests/opt/sccp_019.phpt index 5a32bd2205..1f7cba7fad 100644 --- a/ext/opcache/tests/opt/sccp_019.phpt +++ b/ext/opcache/tests/opt/sccp_019.phpt @@ -1,5 +1,5 @@ --TEST-- -SCCP 019: Array assignemnt +SCCP 019: Array assignment --INI-- opcache.enable=1 opcache.enable_cli=1 diff --git a/ext/opcache/tests/opt/sccp_020.phpt b/ext/opcache/tests/opt/sccp_020.phpt index 41c694a591..b3aa82bff5 100644 --- a/ext/opcache/tests/opt/sccp_020.phpt +++ b/ext/opcache/tests/opt/sccp_020.phpt @@ -1,5 +1,5 @@ --TEST-- -SCCP 020: Object assignemnt +SCCP 020: Object assignment --INI-- opcache.enable=1 opcache.enable_cli=1 diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c index ba65996c1d..44d92dabd0 100644 --- a/ext/pcntl/php_signal.c +++ b/ext/pcntl/php_signal.c @@ -19,7 +19,7 @@ #include "Zend/zend.h" #include "Zend/zend_signal.h" -/* php_signal using sigaction is derived from Advanced Programing +/* php_signal using sigaction is derived from Advanced Programming * in the Unix Environment by W. Richard Stevens p 298. */ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) { diff --git a/ext/pcntl/tests/001.phpt b/ext/pcntl/tests/001.phpt index b9587e1325..fe96d50f04 100644 --- a/ext/pcntl/tests/001.phpt +++ b/ext/pcntl/tests/001.phpt @@ -61,7 +61,7 @@ function test_stop_signal(){ if ( pcntl_wifstopped($status) ) { $signal_print=pcntl_wstopsig($status); if ($signal_print==SIGSTOP) $signal_print="SIGSTOP"; - print "\nProcess was stoped by signal : ". $signal_print; + print "\nProcess was stopped by signal : ". $signal_print; } posix_kill($pid, SIGCONT); } @@ -82,4 +82,4 @@ Testing pcntl_wifsignaled.... Process was terminated by signal : SIGTERM Testing pcntl_wifstopped and pcntl_wstopsig.... -Process was stoped by signal : SIGSTOP +Process was stopped by signal : SIGSTOP diff --git a/ext/pcre/pcre2lib/sljit/sljitExecAllocator.c b/ext/pcre/pcre2lib/sljit/sljitExecAllocator.c index caaf438578..7d9684c9cb 100644 --- a/ext/pcre/pcre2lib/sljit/sljitExecAllocator.c +++ b/ext/pcre/pcre2lib/sljit/sljitExecAllocator.c @@ -114,7 +114,7 @@ static SLJIT_INLINE int get_map_jit_flag() /* The following code is thread safe because multiple initialization sets map_jit_flag to the same value and the code has no side-effects. - Changing the kernel version witout system restart is (very) unlikely. */ + Changing the kernel version without system restart is (very) unlikely. */ if (map_jit_flag == -1) { struct utsname name; @@ -358,7 +358,7 @@ SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec(void) free_block = free_blocks; while (free_block) { next_free_block = free_block->next; - if (!free_block->header.prev_size && + if (!free_block->header.prev_size && AS_BLOCK_HEADER(free_block, free_block->size)->size == 1) { total_size -= free_block->size; sljit_remove_free_block(free_block); diff --git a/ext/pcre/pcre2lib/sljit/sljitLir.c b/ext/pcre/pcre2lib/sljit/sljitLir.c index ded9541b31..725d10ec93 100644 --- a/ext/pcre/pcre2lib/sljit/sljitLir.c +++ b/ext/pcre/pcre2lib/sljit/sljitLir.c @@ -325,7 +325,7 @@ #elif (defined SLJIT_DEBUG && SLJIT_DEBUG) -/* Assertion failure occures if an invalid argument is passed. */ +/* Assertion failure occurs if an invalid argument is passed. */ #undef SLJIT_ARGUMENT_CHECKS #define SLJIT_ARGUMENT_CHECKS 1 diff --git a/ext/pcre/pcre2lib/sljit/sljitNativeTILEGX_64.c b/ext/pcre/pcre2lib/sljit/sljitNativeTILEGX_64.c index 003f43a790..adc6d95b8c 100644 --- a/ext/pcre/pcre2lib/sljit/sljitNativeTILEGX_64.c +++ b/ext/pcre/pcre2lib/sljit/sljitNativeTILEGX_64.c @@ -59,7 +59,7 @@ static const sljit_u8 reg_map[SLJIT_NUMBER_OF_REGISTERS + 6] = { #define TMP_REG3_mapped 6 #define ADDR_TMP_mapped 7 -/* Flags are keept in volatile registers. */ +/* Flags are kept in volatile registers. */ #define EQUAL_FLAG 8 /* And carry flag as well. */ #define ULESS_FLAG 9 @@ -115,7 +115,7 @@ SLJIT_API_FUNC_ATTRIBUTE const char *sljit_get_platform_name(void) typedef sljit_uw sljit_ins; struct jit_instr { - const struct tilegx_opcode* opcode; + const struct tilegx_opcode* opcode; tilegx_pipeline pipe; unsigned long input_registers; unsigned long output_registers; @@ -896,7 +896,7 @@ static sljit_s32 push_jr_buffer(struct sljit_compiler *compiler, tilegx_mnemonic inst_buf[inst_buf_index].output_registers = 0; inst_buf[inst_buf_index].line = line; inst_buf_index++; - + return flush_buffer(compiler); } @@ -1178,7 +1178,7 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compi { sljit_ins base; sljit_s32 i, tmp; - + CHECK_ERROR(); CHECK(check_sljit_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size)); set_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size); diff --git a/ext/pcre/pcre2lib/sljit/sljitUtils.c b/ext/pcre/pcre2lib/sljit/sljitUtils.c index 5c2a838932..03ed886a99 100644 --- a/ext/pcre/pcre2lib/sljit/sljitUtils.c +++ b/ext/pcre/pcre2lib/sljit/sljitUtils.c @@ -70,7 +70,7 @@ static HANDLE allocator_mutex = 0; static SLJIT_INLINE void allocator_grab_lock(void) { - /* No idea what to do if an error occures. Static mutexes should never fail... */ + /* No idea what to do if an error occurs. Static mutexes should never fail... */ if (!allocator_mutex) allocator_mutex = CreateMutex(NULL, TRUE, NULL); else @@ -90,7 +90,7 @@ static HANDLE global_mutex = 0; SLJIT_API_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_grab_lock(void) { - /* No idea what to do if an error occures. Static mutexes should never fail... */ + /* No idea what to do if an error occurs. Static mutexes should never fail... */ if (!global_mutex) global_mutex = CreateMutex(NULL, TRUE, NULL); else diff --git a/ext/pcre/tests/bug41638.phpt b/ext/pcre/tests/bug41638.phpt index 8c907f9903..3ab9a84ac2 100644 --- a/ext/pcre/tests/bug41638.phpt +++ b/ext/pcre/tests/bug41638.phpt @@ -2,7 +2,7 @@ Bug #41638 (pcre 7.0 regression) --FILE-- <?php -$str = "repeater id='loopt' dataSrc=subject colums=2"; +$str = "repeater id='loopt' dataSrc=subject columns=2"; preg_match_all("/(['\"])((.*(\\\\\\1)*)*)\\1/sU",$str,$str_instead); print_r($str_instead); diff --git a/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt b/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt index b28ba2a03c..31b2bd5d75 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt @@ -32,7 +32,7 @@ $db = MySQLPDOTest::factory(); } if (!is_null($expect) && ($expect != $both)) { - printf("[%03d] Expected differes from returned data, dumping\n", $offset); + printf("[%03d] Expected differs from returned data, dumping\n", $offset); var_dump($expect); var_dump($both); } diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam_types.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam_types.phpt index c6860fa539..0e34313a96 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam_types.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam_types.phpt @@ -59,7 +59,7 @@ $db = MySQLPDOTest::factory(); $stmt->closeCursor(); if ($label != $value) { - printf("[%03d/%s + 6] Got %s expecting %s - plase check manually\n", + printf("[%03d/%s + 6] Got %s expecting %s - please check manually\n", $offset, ($native) ? 'native' : 'emulated', var_export($label, true), var_export($value, true)); // fall through @@ -74,14 +74,14 @@ $db = MySQLPDOTest::factory(); } if ($row['label'] != $value) { - printf("[%03d/%s + 8] Got %s expecting %s - plase check manually\n", + printf("[%03d/%s + 8] Got %s expecting %s - please check manually\n", $offset, ($native) ? 'native' : 'emulated', var_export($row['label'], true), var_export($value, true)); return false; } if ($row['label'] != $label) { - printf("[%03d/%s + 9] Got %s from FETCH_ASSOC and %s from FETCH_BOUND- plase check manually\n", + printf("[%03d/%s + 9] Got %s from FETCH_ASSOC and %s from FETCH_BOUND- please check manually\n", $offset, ($native) ? 'native' : 'emulated', var_export($row['label'], true), var_export($value, true)); return false; diff --git a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt index b56ff9a4f0..1b152c5039 100644 --- a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt +++ b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt @@ -236,7 +236,7 @@ SQL $db->exec('INSERT INTO test(id, label) VALUES (1, 1)'); $stmt = $db->query('SELECT id, label FROM test'); $meta = $stmt->getColumnMeta(0); - // verify the flags array countains a not_null flag and not nullable flags + // verify the flags array contains a not_null flag and not nullable flags if (!isset($meta['flags'])) { printf("[1001] No flags contained in metadata %s\n", var_export($meta, true)); } else { @@ -252,7 +252,7 @@ SQL printf("[1002] Flags seem wrong %s\n", var_export($meta, true)); } $meta = $stmt->getColumnMeta(1); - // verify the flags array countains a nullable flag and not not_null flags + // verify the flags array contains a nullable flag and not not_null flags if (!isset($meta['flags'])) { printf("[1003] No flags contained in metadata %s\n", var_export($meta, true)); } else { diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index 63eb38c759..1dfb0bd82e 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -1030,7 +1030,7 @@ static PHP_METHOD(PDO, pgsqlLOBUnlink) /* }}} */ /* {{{ proto mixed PDO::pgsqlGetNotify([ int $result_type = PDO::FETCH_USE_DEFAULT] [, int $ms_timeout = 0 ]]) - Get asyncronous notification */ + Get asynchronous notification */ static PHP_METHOD(PDO, pgsqlGetNotify) { pdo_dbh_t *dbh; diff --git a/ext/phar/tests/011.phpt b/ext/phar/tests/011.phpt index 481086474c..b35e979d3f 100644 --- a/ext/phar/tests/011.phpt +++ b/ext/phar/tests/011.phpt @@ -12,7 +12,7 @@ $file = "<?php Phar::mapPhar('hio'); __HALT_COMPILER(); ?>"; -// compressed file length does not match incompressed lentgh for an uncompressed file +// compressed file length does not match incompressed length for an uncompressed file $files = array(); $files['a'] = array('cont'=>'a','ulen'=>1,'clen'=>2); diff --git a/ext/phar/tests/pharfileinfo_getcrc32.phpt b/ext/phar/tests/pharfileinfo_getcrc32.phpt index b8061280f7..a7b6dcbf7b 100644 --- a/ext/phar/tests/pharfileinfo_getcrc32.phpt +++ b/ext/phar/tests/pharfileinfo_getcrc32.phpt @@ -13,7 +13,7 @@ $file = "<?php Phar::mapPhar('hio'); __HALT_COMPILER(); ?>"; -// compressed file length does not match incompressed lentgh for an uncompressed file +// compressed file length does not match incompressed length for an uncompressed file $files = array(); $files['a/subdir/here'] = array('cont'=>'a','ulen'=>1,'clen'=>1); diff --git a/ext/reflection/tests/closures_002.phpt b/ext/reflection/tests/closures_002.phpt index 27683bcf2b..4b127810fb 100644 --- a/ext/reflection/tests/closures_002.phpt +++ b/ext/reflection/tests/closures_002.phpt @@ -1,5 +1,5 @@ --TEST-- -Reflection on invokable objects +Reflection on invocable objects --FILE-- <?php diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index da61c41f0e..08aa5558b0 100644 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -215,7 +215,7 @@ static inline void spl_filesystem_object_get_file_name(spl_filesystem_object *in if (intern->file_name) { efree(intern->file_name); } - /* if there is parent path, ammend it, otherwise just use the given path as is */ + /* if there is parent path, ammnd it, otherwise just use the given path as is */ if (path_len == 0) { intern->file_name_len = spprintf( &intern->file_name, 0, "%s", intern->u.dir.entry.d_name); diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c index abdf45ef0f..2e08645d31 100644 --- a/ext/spl/spl_observer.c +++ b/ext/spl/spl_observer.c @@ -539,7 +539,7 @@ SPL_METHOD(SplObjectStorage, removeAllExcept) /* }}} */ /* {{{ proto bool SplObjectStorage::contains(object obj) - Determine whethe an object is contained in the storage */ + Determine whether an object is contained in the storage */ SPL_METHOD(SplObjectStorage, contains) { zval *obj; diff --git a/ext/spl/tests/class_uses_basic2.phpt b/ext/spl/tests/class_uses_basic2.phpt index c358ecccab..941d967fa7 100644 --- a/ext/spl/tests/class_uses_basic2.phpt +++ b/ext/spl/tests/class_uses_basic2.phpt @@ -20,7 +20,7 @@ class barUser { use bar; } class foobarUser { use foo, bar; } /** There is no semantics for traits in the inheritance chain. - Traits are flattend into a class, and that semantics is nothing + Traits are flattened into a class, and that semantics is nothing like a type, or interface, and thus, not propergated. */ class fooViaBarUser extends barUser { use foo; } diff --git a/ext/spl/tests/fixedarray_009.phpt b/ext/spl/tests/fixedarray_009.phpt index 185b9d1acc..b885fe9957 100644 --- a/ext/spl/tests/fixedarray_009.phpt +++ b/ext/spl/tests/fixedarray_009.phpt @@ -1,5 +1,5 @@ --TEST-- -SPL: FixedArray: Trying to instantiate passing string to construtor parameter +SPL: FixedArray: Trying to instantiate passing string to constructor parameter --FILE-- <?php diff --git a/ext/spl/tests/spl_autoload_013.phpt b/ext/spl/tests/spl_autoload_013.phpt index 54626e6100..fe71562273 100644 --- a/ext/spl/tests/spl_autoload_013.phpt +++ b/ext/spl/tests/spl_autoload_013.phpt @@ -1,5 +1,5 @@ --TEST-- -SPL: spl_autoload_functions() with closures and invokables +SPL: spl_autoload_functions() with closures and invocables --FILE-- <?php $closure = function($class) { diff --git a/ext/spl/tests/spl_autoload_014.phpt b/ext/spl/tests/spl_autoload_014.phpt index 0802c3c479..3c7cc38f63 100644 --- a/ext/spl/tests/spl_autoload_014.phpt +++ b/ext/spl/tests/spl_autoload_014.phpt @@ -1,5 +1,5 @@ --TEST-- -SPL: spl_autoload_unregister() with closures and invokables +SPL: spl_autoload_unregister() with closures and invocables --FILE-- <?php $closure = function($class) { diff --git a/ext/spl/tests/spl_cachingiterator___toString_basic.phpt b/ext/spl/tests/spl_cachingiterator___toString_basic.phpt index 91948c80b4..a3ad699917 100644 --- a/ext/spl/tests/spl_cachingiterator___toString_basic.phpt +++ b/ext/spl/tests/spl_cachingiterator___toString_basic.phpt @@ -9,7 +9,7 @@ Chris Scott chris.scott@nstein.com $ai = new ArrayIterator(array(new stdClass(), new stdClass())); $ci = new CachingIterator($ai); var_dump( -$ci->__toString() // if conversion to string is done by echo, for example, an exeption is thrown. Invoking __toString explicitly covers different code. +$ci->__toString() // if conversion to string is done by echo, for example, an exception is thrown. Invoking __toString explicitly covers different code. ); ?> --EXPECT-- diff --git a/ext/standard/tests/array/array_chunk_basic1.phpt b/ext/standard/tests/array/array_chunk_basic1.phpt index 63236b2dfe..8bd92eb14e 100644 --- a/ext/standard/tests/array/array_chunk_basic1.phpt +++ b/ext/standard/tests/array/array_chunk_basic1.phpt @@ -24,7 +24,7 @@ $input_arrays = array ( // associative arrays - key as numeric array(1 => 'one', 2 => "two", 3 => "three"), - // array containing elements with/witout keys + // array containing elements with/without keys array(1 => 'one','two', 3 => 'three', 4, "five" => 5) ); diff --git a/ext/standard/tests/array/array_map_variation10.phpt b/ext/standard/tests/array/array_map_variation10.phpt index df071a414b..184019cdf1 100644 --- a/ext/standard/tests/array/array_map_variation10.phpt +++ b/ext/standard/tests/array/array_map_variation10.phpt @@ -8,7 +8,7 @@ Test array_map() function : usage variations - anonymous callback function */ /* - * Test array_map() by passing anoymous callback function with following variations + * Test array_map() by passing anonymous callback function with following variations */ echo "*** Testing array_map() : anonymous callback function ***\n"; diff --git a/ext/standard/tests/array/array_multisort_variation10.phpt b/ext/standard/tests/array/array_multisort_variation10.phpt index 2a08156d94..5452365f37 100644 --- a/ext/standard/tests/array/array_multisort_variation10.phpt +++ b/ext/standard/tests/array/array_multisort_variation10.phpt @@ -1,5 +1,5 @@ --TEST-- -Test array_multisort() function : usage variation - testing with anonymous arrary arguments +Test array_multisort() function : usage variation - testing with anonymous array arguments --FILE-- <?php /* Prototype : bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_NATURAL|SORT_FLAG_CASE]], ...]) diff --git a/ext/standard/tests/array/array_search_variation4.phpt b/ext/standard/tests/array/array_search_variation4.phpt index f9b55dfe4d..0f5e29ecfc 100644 --- a/ext/standard/tests/array/array_search_variation4.phpt +++ b/ext/standard/tests/array/array_search_variation4.phpt @@ -19,7 +19,7 @@ $dir_handle = opendir( __DIR__ ); //store resources in array for comparison. $resources = array($file_handle, $dir_handle); -// search for resouce type in the resource array +// search for resource type in the resource array var_dump( array_search($file_handle, $resources, true) ); //checking for (int) type resource var_dump( array_search((int)$dir_handle, $resources, true) ); diff --git a/ext/standard/tests/array/array_values.phpt b/ext/standard/tests/array/array_values.phpt Binary files differindex b490684333..afa113e73c 100644 --- a/ext/standard/tests/array/array_values.phpt +++ b/ext/standard/tests/array/array_values.phpt diff --git a/ext/standard/tests/array/count_recursive.phpt b/ext/standard/tests/array/count_recursive.phpt index 1fd2e8e6ca..501b2cf598 100644 --- a/ext/standard/tests/array/count_recursive.phpt +++ b/ext/standard/tests/array/count_recursive.phpt @@ -3,7 +3,7 @@ Test count() function --FILE-- <?php /* Prototype: int count ( mixed $var [, int $mode] ); - Discription: Count elements in an array, or properties in an object + Description: Count elements in an array, or properties in an object */ echo "*** Testing basic functionality of count() function ***\n"; diff --git a/ext/standard/tests/array/in_array_variation4.phpt b/ext/standard/tests/array/in_array_variation4.phpt index d481010211..4cfc405922 100644 --- a/ext/standard/tests/array/in_array_variation4.phpt +++ b/ext/standard/tests/array/in_array_variation4.phpt @@ -9,7 +9,7 @@ Test in_array() function : usage variations - haystack as resource/multi dimensi * Source Code: ext/standard/array.c */ -/* Test in_array() with haystack as resouce and multidimensional arrays */ +/* Test in_array() with haystack as resource and multidimensional arrays */ /* checking for Resources */ echo "*** Testing resource type with in_array() ***\n"; @@ -22,7 +22,7 @@ $dir_handle = opendir( __DIR__ ); //store resources in array for comparison. $resources = array($file_handle, $dir_handle); -// search for resouce type in the resource array +// search for resource type in the resource array var_dump( in_array($file_handle, $resources, true) ); //checking for (int) type resource var_dump( in_array((int)$dir_handle, $resources, true) ); diff --git a/ext/standard/tests/array/krsort_variation8.phpt b/ext/standard/tests/array/krsort_variation8.phpt Binary files differindex 67a402a8df..7f9aa17bf3 100644 --- a/ext/standard/tests/array/krsort_variation8.phpt +++ b/ext/standard/tests/array/krsort_variation8.phpt diff --git a/ext/standard/tests/array/ksort_variation8.phpt b/ext/standard/tests/array/ksort_variation8.phpt Binary files differindex bedbeeed7c..9222e64e19 100644 --- a/ext/standard/tests/array/ksort_variation8.phpt +++ b/ext/standard/tests/array/ksort_variation8.phpt diff --git a/ext/standard/tests/array/natcasesort_variation6.phpt b/ext/standard/tests/array/natcasesort_variation6.phpt index bbbefa799e..85d4cd64e5 100644 --- a/ext/standard/tests/array/natcasesort_variation6.phpt +++ b/ext/standard/tests/array/natcasesort_variation6.phpt @@ -8,7 +8,7 @@ Test natcasesort() function : usage variations - referenced variables */ /* - * Pass an array of referenced varaibles to test how natcasesort() re-orders it + * Pass an array of referenced variables to test how natcasesort() re-orders it */ echo "*** Testing natcasesort() : usage variation ***\n"; diff --git a/ext/standard/tests/array/sort_variation11.phpt b/ext/standard/tests/array/sort_variation11.phpt Binary files differindex 0806ab6816..5a0bea5ffb 100644 --- a/ext/standard/tests/array/sort_variation11.phpt +++ b/ext/standard/tests/array/sort_variation11.phpt diff --git a/ext/standard/tests/array/uasort_variation3.phpt b/ext/standard/tests/array/uasort_variation3.phpt Binary files differindex bcb5d41fab..5db2163e24 100644 --- a/ext/standard/tests/array/uasort_variation3.phpt +++ b/ext/standard/tests/array/uasort_variation3.phpt diff --git a/ext/standard/tests/dir/dir_variation7.phpt b/ext/standard/tests/dir/dir_variation7.phpt index c2e6519dfe..7993105e36 100644 --- a/ext/standard/tests/dir/dir_variation7.phpt +++ b/ext/standard/tests/dir/dir_variation7.phpt @@ -42,14 +42,14 @@ chmod($sub_dir_path, 0777); $child_dir_path = $sub_dir_path."/child_dir"; @mkdir($child_dir_path); -// remove the write and execute permisson from sub parent +// remove the write and execute permission from sub parent chmod($sub_dir_path, 0444); echo "-- After restricting 1st level parent directory --\n"; $d = dir($child_dir_path); // try to open, expected failure var_dump( $d ); // dump it -// remove the execute permisson from parent dir, allowing all permission for sub dir -chmod($sub_dir_path, 0777); // all permisson to sub dir +// remove the execute permission from parent dir, allowing all permission for sub dir +chmod($sub_dir_path, 0777); // all permission to sub dir chmod($parent_dir_path, 0666); // restricting parent directory echo "-- After restricting parent directory --\n"; $d = dir($child_dir_path); // try to open, expected failure diff --git a/ext/standard/tests/dir/opendir_variation5.phpt b/ext/standard/tests/dir/opendir_variation5.phpt index 5f123275da..cbdc5c302c 100644 --- a/ext/standard/tests/dir/opendir_variation5.phpt +++ b/ext/standard/tests/dir/opendir_variation5.phpt @@ -41,15 +41,15 @@ chmod($sub_dir_path, 0777); $child_dir_path = $sub_dir_path."/child_dir"; mkdir($child_dir_path); -// remove the write and execute permisson from sub parent +// remove the write and execute permission from sub parent chmod($sub_dir_path, 0444); echo "\n-- After restricting 1st level parent directory --\n"; $dir_handle1 = opendir($child_dir_path); var_dump( $dir_handle1 ); -// remove the execute permisson from parent dir, allowing all permission for sub dir -chmod($sub_dir_path, 0777); // all permisson to sub dir +// remove the execute permission from parent dir, allowing all permission for sub dir +chmod($sub_dir_path, 0777); // all permission to sub dir chmod($parent_dir_path, 0666); // restricting parent directory echo "\n-- After restricting parent directory --\n"; diff --git a/ext/standard/tests/dir/scandir_variation5.phpt b/ext/standard/tests/dir/scandir_variation5.phpt index cfd564ca79..88596c42c5 100644 --- a/ext/standard/tests/dir/scandir_variation5.phpt +++ b/ext/standard/tests/dir/scandir_variation5.phpt @@ -42,14 +42,14 @@ chmod($sub_dir_path, 0777); $child_dir_path = $sub_dir_path."/child_dir"; mkdir($child_dir_path); -// remove the write and execute permisson from sub parent +// remove the write and execute permission from sub parent chmod($sub_dir_path, 0444); echo "\n-- After restricting 1st level parent directory --\n"; var_dump(scandir($child_dir_path)); -// remove the execute permisson from parent dir, allowing all permission for sub dir -chmod($sub_dir_path, 0777); // all permisson to sub dir +// remove the execute permission from parent dir, allowing all permission for sub dir +chmod($sub_dir_path, 0777); // all permission to sub dir chmod($parent_dir_path, 0666); // restricting parent directory echo "\n-- After restricting parent directory --\n"; diff --git a/ext/standard/tests/file/bug77552.phpt b/ext/standard/tests/file/bug77552.phpt index 9404b8e09f..8e3a835537 100644 --- a/ext/standard/tests/file/bug77552.phpt +++ b/ext/standard/tests/file/bug77552.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #77552 Unintialized php_stream_statbuf in stat functions +Bug #77552 Uninitialized php_stream_statbuf in stat functions --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) != 'WIN') { @@ -15,7 +15,7 @@ $target = $tmpDir.'/folder/target'; mkdir($target, 0777, true); $junction = $tmpDir.'/junction'; -$cmd = sprintf('mklink /J "%s" "%s"', $junction, $target); +$cmd = sprintf('mklink /J "%s" "%s"', $junction, $target); exec($cmd); $stat = lstat($junction); diff --git a/ext/standard/tests/file/copy_variation14.phpt b/ext/standard/tests/file/copy_variation14.phpt index 45289af90a..bee8c94b47 100644 --- a/ext/standard/tests/file/copy_variation14.phpt +++ b/ext/standard/tests/file/copy_variation14.phpt @@ -8,7 +8,7 @@ Test copy() function: usage variations - non existing src/dest */ /* Test copy(): Trying to create a copy of non-existing source in an existing destination - and an existing source in non-existing destiantion */ + and an existing source in non-existing destination */ $file_path = __DIR__; diff --git a/ext/standard/tests/file/fgetc_basic.phpt b/ext/standard/tests/file/fgetc_basic.phpt index f5b8ef9055..a69470b3d6 100644 --- a/ext/standard/tests/file/fgetc_basic.phpt +++ b/ext/standard/tests/file/fgetc_basic.phpt @@ -10,7 +10,7 @@ Test fgetc() function : basic functionality include ("file.inc"); echo "*** Testing fgetc() : basic operations ***\n"; -/* read charecter from different files which are opened in different modes */ +/* read character from different files which are opened in different modes */ $file_modes = array( "r", "rb", "rt", "r+", "r+b", "r+t"); /* create file with following type of contents */ @@ -46,7 +46,7 @@ for($outerloop_counter = 0; $outerloop_counter < count($file_content_types); $ou var_dump( fgetc($file_handle) ); // read a char var_dump( ftell($file_handle) ); // file pointer position var_dump( feof($file_handle) ); // is it eof() - var_dump($file_handle); // dump the $file_handle to see if any thing got modifed + var_dump($file_handle); // dump the $file_handle to see if any thing got modified } // end of for // close the file diff --git a/ext/standard/tests/file/fgets_variation5.phpt b/ext/standard/tests/file/fgets_variation5.phpt index 138bd8f238..ae1e781097 100644 --- a/ext/standard/tests/file/fgets_variation5.phpt +++ b/ext/standard/tests/file/fgets_variation5.phpt @@ -35,7 +35,7 @@ foreach($file_modes as $file_mode) { exit(); } - /* read with length beyong file size */ + /* read with length beyond file size */ echo "-- fgets() with length > filesize --\n"; rewind($file_handle); diff --git a/ext/standard/tests/file/file.inc b/ext/standard/tests/file/file.inc index eda2b32c78..aaa151ac0d 100644 --- a/ext/standard/tests/file/file.inc +++ b/ext/standard/tests/file/file.inc @@ -202,7 +202,7 @@ function change_file_perms($file_path, permissions. File is filled with content of size specified. $file_path = dir where files will be created $name_prefix = prefix to be used for names, name is suffix with a - unqiue numeric value to make the file name unique, default = file + unique numeric value to make the file name unique, default = file $name_suffix = suffix to be used for the name, default = 1 $count = total no. of files to be created, default = 1 $mode = file open mode as specified in fopen() call. Do not use @@ -215,7 +215,7 @@ function change_file_perms($file_path, "empty" = empty file "text_with_new_line" = similar to text fill type, but writes with new line char "alphanumeric" = fill file with alpha numeric text - If imporper $content type is specified, file is created as empty + If improper $content type is specified, file is created as empty $size = size of the fill in terms of kilobyte, i.e size of the file. if $flag is specified as "byte", then then given size is taken in bytes $flag = specify if size has to be treated as no of total bytes or diff --git a/ext/standard/tests/file/file_put_contents_variation4.phpt b/ext/standard/tests/file/file_put_contents_variation4.phpt index 7d63ea4b7d..722ecd4dd1 100644 --- a/ext/standard/tests/file/file_put_contents_variation4.phpt +++ b/ext/standard/tests/file/file_put_contents_variation4.phpt @@ -34,7 +34,7 @@ rmdir($thisTestDir); function runtest() { global $filename; - //correct php53 behaviour is to ingnore the FILE_USE_INCLUDE_PATH unless the file alread exists + //correct php53 behaviour is to ignore the FILE_USE_INCLUDE_PATH unless the file already exists // in the include path. In this case it doesn't so the file should be written in the current dir. file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH); $line = file_get_contents($filename); diff --git a/ext/standard/tests/file/filesize_variation4-win32.phpt b/ext/standard/tests/file/filesize_variation4-win32.phpt index 89bb869e31..950f8be1cb 100644 --- a/ext/standard/tests/file/filesize_variation4-win32.phpt +++ b/ext/standard/tests/file/filesize_variation4-win32.phpt @@ -60,7 +60,7 @@ clearstatcache(); echo "-- writing data after hole and checking the size --\n"; $file_handle = fopen($filename, "a"); -fwrite($file_handle, "Hello\0"); //wrting 6 bytes of data +fwrite($file_handle, "Hello\0"); //writing 6 bytes of data fclose($file_handle); var_dump( filesize($filename) ); //226 bytes clearstatcache(); diff --git a/ext/standard/tests/file/filesize_variation4.phpt b/ext/standard/tests/file/filesize_variation4.phpt index 4abb64dca6..6a76313af3 100644 --- a/ext/standard/tests/file/filesize_variation4.phpt +++ b/ext/standard/tests/file/filesize_variation4.phpt @@ -62,7 +62,7 @@ clearstatcache(); echo "-- writing data after hole and checking the size --\n"; $file_handle = fopen($filename, "a"); -fwrite($file_handle, "Hello\0"); //wrting 6 bytes of data +fwrite($file_handle, "Hello\0"); //writing 6 bytes of data fclose($file_handle); var_dump( filesize($filename) ); //226 bytes clearstatcache(); diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt index 4069dd2aa0..9092094339 100644 --- a/ext/standard/tests/file/flock_error.phpt +++ b/ext/standard/tests/file/flock_error.phpt @@ -15,7 +15,7 @@ echo "*** Testing error conditions ***\n"; $file = preg_replace("~\.phpt?$~", '.tmp', __FILE__); $fp = fopen($file, "w"); -/* array of operatons */ +/* array of operations */ $operations = array( 0, LOCK_NB, diff --git a/ext/standard/tests/file/flock_variation.phpt b/ext/standard/tests/file/flock_variation.phpt index 0c66fca7fb..49c4a53a3d 100644 --- a/ext/standard/tests/file/flock_variation.phpt +++ b/ext/standard/tests/file/flock_variation.phpt @@ -8,13 +8,13 @@ Description: PHP supports a portable way of locking complete files in an advisory way */ -echo "*** Testing flock() fun with the various operation and +echo "*** Testing flock() fun with the various operation and wouldblock values ***\n"; $file = preg_replace("~\.phpt?$~", null, __FILE__); $fp = fopen($file, "w"); -/* array of operatons */ +/* array of operations */ $operations = array( LOCK_SH, LOCK_EX, @@ -66,7 +66,7 @@ fclose($fp); echo "\n*** Done ***\n"; ?> --EXPECT-- -*** Testing flock() fun with the various operation and +*** Testing flock() fun with the various operation and wouldblock values *** --- Outer iteration 0 --- bool(true) diff --git a/ext/standard/tests/file/fread_basic.phpt b/ext/standard/tests/file/fread_basic.phpt index 80175ef37f..c97bc05d35 100644 --- a/ext/standard/tests/file/fread_basic.phpt +++ b/ext/standard/tests/file/fread_basic.phpt @@ -54,7 +54,7 @@ $file_content_types = array("numeric","text","text_with_new_line","alphanumeric" exit(); } - /* read file by giving the acutal length, check the length and content by calculating the + /* read file by giving the actual length, check the length and content by calculating the hash using md5() function */ /* Reading 1024 bytes from file, expecting 1024 bytes */ ; diff --git a/ext/standard/tests/file/fscanf_variation2.phpt b/ext/standard/tests/file/fscanf_variation2.phpt index 50aba154a9..683ac4faae 100644 --- a/ext/standard/tests/file/fscanf_variation2.phpt +++ b/ext/standard/tests/file/fscanf_variation2.phpt @@ -8,7 +8,7 @@ Test fscanf() function: usage variations - integer formats with integer values Description: Parses input from a file according to a format */ -/* Test fscanf() to scan different integer values using different interger format types */ +/* Test fscanf() to scan different integer values using different integer format types */ $file_path = __DIR__; diff --git a/ext/standard/tests/file/is_executable_variation2.phpt b/ext/standard/tests/file/is_executable_variation2.phpt index 5b07f683d3..e333b270bc 100644 --- a/ext/standard/tests/file/is_executable_variation2.phpt +++ b/ext/standard/tests/file/is_executable_variation2.phpt @@ -26,7 +26,7 @@ chmod("$file_path/is_executable_variation2", 0444); var_dump( is_executable("$file_path/is_executable_variation2") ); // exp: bool(false) chmod("$file_path/is_executable_variation2", 0777); // chmod to enable deletion of directory -echo "\n*** Testing miscelleneous input for is_executable() function ***\n"; +echo "\n*** Testing miscellaneous input for is_executable() function ***\n"; $name_prefix = "is_executable_variation2"; create_files(__DIR__, 1, "numeric", 0755, 1, "w", $name_prefix, 1); create_files(__DIR__, 1, "text", 0755, 1, "w", $name_prefix, 2); @@ -77,7 +77,7 @@ rmdir(__DIR__."/is_executable_variation2/"); *** Testing is_executable() on directory without execute permission *** bool(false) -*** Testing miscelleneous input for is_executable() function *** +*** Testing miscellaneous input for is_executable() function *** -- Iteration 1 -- bool(true) -- Iteration 2 -- diff --git a/ext/standard/tests/file/is_file_variation1.phpt b/ext/standard/tests/file/is_file_variation1.phpt index c8a26ea7c7..9593b9c495 100644 --- a/ext/standard/tests/file/is_file_variation1.phpt +++ b/ext/standard/tests/file/is_file_variation1.phpt @@ -15,7 +15,7 @@ $file_path = __DIR__; echo "-- Testing is_file() with file containing data --\n"; $filename = $file_path."/is_file_variation1.tmp"; $file_handle = fopen($filename, "w" ); -fwrite( $file_handle, "Hello, world....." ); // exptected true +fwrite( $file_handle, "Hello, world....." ); // expected true fclose($file_handle); var_dump( is_file($filename) ); clearstatcache(); diff --git a/ext/standard/tests/file/is_readable_variation2.phpt b/ext/standard/tests/file/is_readable_variation2.phpt index 1dd4ffd06a..28c63a775d 100644 --- a/ext/standard/tests/file/is_readable_variation2.phpt +++ b/ext/standard/tests/file/is_readable_variation2.phpt @@ -26,7 +26,7 @@ chmod("$file_path/is_readable_variation2", 0001); var_dump( is_readable("$file_path/is_readable_variation2") ); // exp: bool(false) chmod("$file_path/is_readable_variation2", 0777); // chmod to enable deletion of directory -echo "\n*** Testing miscelleneous input for is_readable() function ***\n"; +echo "\n*** Testing miscellaneous input for is_readable() function ***\n"; $name_prefix = "is_readable_variation2"; create_files(__DIR__, 1, "numeric", 0755, 1, "w", $name_prefix, 1); create_files(__DIR__, 1, "text", 0755, 1, "w", $name_prefix, 2); @@ -77,7 +77,7 @@ rmdir(__DIR__."/is_readable_variation2/"); *** Testing is_readable() on directory without read permission *** bool(false) -*** Testing miscelleneous input for is_readable() function *** +*** Testing miscellaneous input for is_readable() function *** -- Iteration 1 -- bool(true) -- Iteration 2 -- diff --git a/ext/standard/tests/file/is_readable_variation3.phpt b/ext/standard/tests/file/is_readable_variation3.phpt index 9a80792c00..97c794d1b7 100644 --- a/ext/standard/tests/file/is_readable_variation3.phpt +++ b/ext/standard/tests/file/is_readable_variation3.phpt @@ -17,7 +17,7 @@ echo "*** Testing is_readable(): usage variations ***\n"; $file_handle = fopen(__FILE__, "r"); unset($file_handle); -echo "\n*** Testing is_readable() on miscelleneous filenames ***\n"; +echo "\n*** Testing is_readable() on miscellaneous filenames ***\n"; $misc_files = array( 0, 1234, @@ -40,7 +40,7 @@ echo "Done\n"; --EXPECTF-- *** Testing is_readable(): usage variations *** -*** Testing is_readable() on miscelleneous filenames *** +*** Testing is_readable() on miscellaneous filenames *** bool(false) bool(false) bool(false) diff --git a/ext/standard/tests/file/is_writable_variation2.phpt b/ext/standard/tests/file/is_writable_variation2.phpt index def45bd2a0..0dcce8c6d4 100644 --- a/ext/standard/tests/file/is_writable_variation2.phpt +++ b/ext/standard/tests/file/is_writable_variation2.phpt @@ -29,7 +29,7 @@ var_dump( is_writable("$file_path/is_writable_variation2") ); // exp: bool(fals var_dump( is_writeable("$file_path/is_writable_variation2") ); // exp: bool(false) chmod("$file_path/is_writable_variation2", 0777); // chmod to enable deletion of directory -echo "\n*** Testing miscelleneous input for is_writable() function ***\n"; +echo "\n*** Testing miscellaneous input for is_writable() function ***\n"; $name_prefix = "is_writable_variation2"; create_files(__DIR__, 1, "numeric", 0755, 1, "w", $name_prefix, 1); create_files(__DIR__, 1, "text", 0755, 1, "w", $name_prefix, 2); @@ -83,7 +83,7 @@ rmdir(__DIR__."/is_writable_variation2/"); bool(false) bool(false) -*** Testing miscelleneous input for is_writable() function *** +*** Testing miscellaneous input for is_writable() function *** -- Iteration 1 -- bool(true) bool(true) diff --git a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt index 8712d52604..bd6a7c56a9 100644 --- a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt +++ b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt @@ -37,7 +37,7 @@ try { echo $e->getMessage(), "\n"; } -echo "\n*** Testing mkdir() with miscelleneous input ***\n"; +echo "\n*** Testing mkdir() with miscellaneous input ***\n"; /* changing mode of mkdir to prevent creating sub-directory under it */ var_dump( chmod("$file_path/mkdir_variation2/", 0000) ); /* creating sub-directory test1 under mkdir, expected: false */ @@ -66,7 +66,7 @@ bool(false) mkdir() expects parameter 1 to be a valid path, string given rmdir() expects parameter 1 to be a valid path, string given -*** Testing mkdir() with miscelleneous input *** +*** Testing mkdir() with miscellaneous input *** bool(true) Warning: mkdir(): Permission denied in %s on line %d diff --git a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt index eb43b85f30..93e69a2149 100644 --- a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt +++ b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt @@ -1,5 +1,5 @@ --TEST-- -Test gettype() & settype() functions : usage variatoins +Test gettype() & settype() functions : usage variations --SKIPIF-- <?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); diff --git a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt index 5e49821f2c..36b0e75485 100644 --- a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt +++ b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt @@ -24,7 +24,7 @@ precision=14 Set type of the data to "int"/"integer" and verify using gettype Following are performed in the listed sequence: get the current type of the variable - set the type of the variable to interger/int type + set the type of the variable to integer/int type dump the variable to see its new data get the new type of the variable */ diff --git a/ext/standard/tests/serialize/max_depth.phpt b/ext/standard/tests/serialize/max_depth.phpt index bc2a8ee040..5e1c869b1d 100644 --- a/ext/standard/tests/serialize/max_depth.phpt +++ b/ext/standard/tests/serialize/max_depth.phpt @@ -68,7 +68,7 @@ class Test implements Serializable { public function unserialize($str) { // Should fail, due to combined nesting level var_dump(unserialize(create_nested_data(129, 'a:1:{i:0;', '}'))); - // Should succeeed, below combined nesting level + // Should succeed, below combined nesting level var_dump(unserialize(create_nested_data(128, 'a:1:{i:0;', '}')) !== false); } } diff --git a/ext/standard/tests/serialize/serialization_arrays_002.phpt b/ext/standard/tests/serialize/serialization_arrays_002.phpt index 39212b6455..9fbf8d4ee7 100644 --- a/ext/standard/tests/serialize/serialization_arrays_002.phpt +++ b/ext/standard/tests/serialize/serialization_arrays_002.phpt @@ -1,5 +1,5 @@ --TEST-- -serialization: arrays with references amonst elements +serialization: arrays with references amongst elements --FILE-- <?php /* Prototype : proto string serialize(mixed variable) diff --git a/ext/standard/tests/strings/join_variation2.phpt b/ext/standard/tests/strings/join_variation2.phpt index 72b5217d0c..d44ff90921 100644 --- a/ext/standard/tests/strings/join_variation2.phpt +++ b/ext/standard/tests/strings/join_variation2.phpt @@ -20,7 +20,7 @@ $glue = '::'; $unset_var = array(1, 2); unset($unset_var); -// get a resouce variable +// get a resource variable $fp = fopen(__FILE__, "r"); // define a class diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt Binary files differindex 109b8e5a5d..ed25d329b2 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt Binary files differindex 2bc95a6c0a..27b87cb99a 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt Binary files differindex ea575f6f11..c5c7ce3c87 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt diff --git a/ext/standard/tests/strings/ucwords_basic.phpt b/ext/standard/tests/strings/ucwords_basic.phpt index e35a2c5cb4..4567c3b499 100644 --- a/ext/standard/tests/strings/ucwords_basic.phpt +++ b/ext/standard/tests/strings/ucwords_basic.phpt @@ -9,7 +9,7 @@ Test ucwords() function : basic functionality echo "*** Testing ucwords() : basic functionality ***\n"; -// lines with different whitespace charecter +// lines with different whitespace character $str_array = array( "testing ucwords", 'testing ucwords', diff --git a/ext/xml/tests/bug35447.phpt b/ext/xml/tests/bug35447.phpt index 8cbb5e5193..0f5f5581d0 100644 --- a/ext/xml/tests/bug35447.phpt +++ b/ext/xml/tests/bug35447.phpt @@ -3,7 +3,7 @@ Bug #35447 (xml_parse_into_struct() chokes on the UTF-8 BOM) --SKIPIF-- <?php require_once("skipif.inc"); -if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");} +if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");} ?> --FILE-- <?php diff --git a/ext/xml/tests/xml009.phpt b/ext/xml/tests/xml009.phpt index 84b89bb488..7143a9faf7 100644 --- a/ext/xml/tests/xml009.phpt +++ b/ext/xml/tests/xml009.phpt @@ -3,7 +3,7 @@ XML parser test, default namespaces --SKIPIF-- <?php require_once("skipif.inc"); -if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");} +if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");} ?> --FILE-- <?php diff --git a/ext/xml/tests/xml010.phpt b/ext/xml/tests/xml010.phpt index 511129c699..e4b4dd6520 100644 --- a/ext/xml/tests/xml010.phpt +++ b/ext/xml/tests/xml010.phpt @@ -3,7 +3,7 @@ XML parser test, attributes --SKIPIF-- <?php require_once("skipif.inc"); -if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");} +if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");} ?> --FILE-- <?php diff --git a/ext/zend_test/test.c b/ext/zend_test/test.c index 6f07635c66..48b8ffe564 100644 --- a/ext/zend_test/test.c +++ b/ext/zend_test/test.c @@ -87,7 +87,7 @@ ZEND_FUNCTION(zend_test_deprecated) zend_parse_parameters(ZEND_NUM_ARGS(), "|z", &arg1); } -/* Create a string without terminating null byte. Must be termined with +/* Create a string without terminating null byte. Must be terminated with * zend_terminate_string() before destruction, otherwise a warning is issued * in debug builds. */ ZEND_FUNCTION(zend_create_unterminated_string) diff --git a/ext/zip/tests/oo_encryption.phpt b/ext/zip/tests/oo_encryption.phpt index 7567111dbb..99ab22cf00 100644 --- a/ext/zip/tests/oo_encryption.phpt +++ b/ext/zip/tests/oo_encryption.phpt @@ -3,7 +3,7 @@ ZipArchive::setEncryption*() functions --SKIPIF-- <?php if (!extension_loaded('zip')) die('skip'); -if (!method_exists('ZipArchive', 'setEncryptionName')) die('skip encrytion not supported'); +if (!method_exists('ZipArchive', 'setEncryptionName')) die('skip encryption not supported'); ?> --FILE-- <?php |
