/* One of the following constants must be used as the last argument
in virtual_file_ex() call. */
-#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
+#define CWD_EXPAND 0 /* expand "." and ".." but don't resolve symlinks */
#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
} else if (isset($opcode["op2"]["ANY"])) {
$op2 = "ANY";
} else if ($spec) {
- /* dispatch to unkonwn handler in unreachable code */
+ /* dispatch to unknown handler in unreachable code */
return "ZEND_NULL";
}
}
if test "$PHP_PEAR" != "no"; then
dnl
- dnl PEAR dependancies
+ dnl PEAR dependencies
dnl
if test "$PHP_XML" = "no"; then
pear_error_msg="$pear_error_msg
#define HALAKIM_PER_METONIC_CYCLE (HALAKIM_PER_LUNAR_CYCLE * (12 * 19 + 7))
#define JEWISH_SDN_OFFSET 347997
-#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises interger overflow */
+#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises integer overflow */
#define NEW_MOON_OF_CREATION 31524
#define SUNDAY 0
}
/* When deep is false Element nodes still require the attributes
- Following taken from libxml as xmlDocCopyNode doesnt do this */
+ Following taken from libxml as xmlDocCopyNode doesn't do this */
if (n->type == XML_ELEMENT_NODE && recursive == 0) {
if (n->nsDef != NULL) {
node->nsDef = xmlCopyNamespaceList(n->nsDef);
return (blocks <= 8);
}
} else if ((str - 1) == s) {
- /* dont allow leading : without another : following */
+ /* don't allow leading : without another : following */
return 0;
}
}
gmp_create(object, &gmpnum);
/* The "object" variable may be modified during the execution of this unserialize handler
- * (it may turn into a reference). Keep the original object around for futher operations. */
+ * (it may turn into a reference). Keep the original object around for further operations. */
ZVAL_COPY_VALUE(&object_copy, object);
p = buf;
int gn, beg, end;
/*
- * In case of duplicate groups, keep only the last suceeding one
+ * In case of duplicate groups, keep only the last succeeding one
* to be consistent with preg_match with the PCRE_DUPNAMES option.
*/
gn = onig_name_to_backref_number(reg, name, name_end, args->region);
/* }}} */
-/* Dependancies */
+/* Dependencies */
static const zend_module_dep mysqli_deps[] = {
ZEND_MOD_REQUIRED("spl")
#if defined(MYSQLI_USE_MYSQLND)
MYSQLI_REPORT_STMT_ERROR(stmt->stmt);
if (rc) {
- /* dont close the statement or subsequent usage (for example ->execute()) will lead to crash */
+ /* don't close the statement or subsequent usage (for example ->execute()) will lead to crash */
for (i=0; i < var_cnt ; i++) {
if (stmt->result.buf[i].val) {
efree(stmt->result.buf[i].val);
{
php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*)iter;
- /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
+ /* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
zval_ptr_dtor(&iterator->intern.data);
zval_ptr_dtor(&iterator->current_row);
}
#include "zend_ssa.h"
/* func flags */
-#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses varables by name */
+#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses variables by name */
#define ZEND_FUNC_HAS_CALLS (1<<1)
#define ZEND_FUNC_VARARG (1<<2) /* uses func_get_args() */
#define ZEND_FUNC_NO_LOOPS (1<<3)
zend_ssa_phi *definition_phi; /* phi that defines this value */
int use_chain; /* uses of this value, linked through opN_use_chain */
zend_ssa_phi *phi_use_chain; /* uses of this value in Phi, linked through use_chain */
- zend_ssa_phi *sym_use_chain; /* uses of this value in Pi constaints */
+ zend_ssa_phi *sym_use_chain; /* uses of this value in Pi constraints */
unsigned int no_val : 1; /* value doesn't mater (used as op1 in ZEND_ASSIGN) */
unsigned int scc_entry : 1;
unsigned int alias : 2; /* value may be changed indirectly */
die("$newfile is not available any more\n");
}
- // maintain file mtimes so that cvs doesnt get crazy
+ // maintain file mtimes so that cvs doesn't get crazy
if (file_get_contents($newfile) !== file_get_contents($file)) {
copy($newfile, $file);
}
ZEND_TSRMLS_CACHE_UPDATE();
#endif
memset(pgsql_globals, 0, sizeof(zend_pgsql_globals));
- /* Initilize notice message hash at MINIT only */
+ /* Initialize notice message hash at MINIT only */
zend_hash_init_ex(&pgsql_globals->notices, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
}
/* }}} */
PS(define_sid) = 0;
}
}
- /* Initilize session ID from non cookie values */
+ /* Initialize session ID from non cookie values */
if (!PS(use_only_cookies)) {
if (!PS(id) && (data = zend_hash_str_find(&EG(symbol_table), "_GET", sizeof("_GET") - 1))) {
ZVAL_DEREF(data);
mode - acsess mode same as for a file (0644) for example
size - size of the block in bytes
- returns an indentifier
+ returns an identifier
char shmop_read(int shmid, int start, int count)
{
php_sxe_iterator *iterator = (php_sxe_iterator *)iter;
- /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
+ /* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
if (!Z_ISUNDEF(iterator->intern.data)) {
zval_ptr_dtor(&iterator->intern.data);
}
$iop = new Interop_Client();
$iop->html = 0;
-// force a fetch of endpoints, this happens irregardless if no endpoints in database
+// force a fetch of endpoints, this happens regardless if no endpoints in database
$iop->fetchEndpoints();
// set some options
/* Grab and send back every cookie */
/* Not going to worry about Path: because
- we shouldn't be changing urls so path dont
+ we shouldn't be changing urls so path doesn't
matter too much
*/
cookie_itt = strstr(ZSTR_VAL(http_headers), "Set-Cookie: ");
ZVAL_NEW_STR(return_value, zend_string_alloc(length, 0));
Z_STRLEN_P(return_value) = php_stream_read(intern->u.file.stream, Z_STRVAL_P(return_value), length);
- /* needed because recv/read/gzread doesnt put a null at the end*/
+ /* needed because recv/read/gzread doesn't put a null at the end*/
Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
}
/* mask is 0xFF (-1) for range #[1..4] and 0x00 for range #0: */
mask = _mm_cmpgt_epi8(in, _mm_set1_epi8(25));
- /* substract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
+ /* subtract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
indices = _mm_sub_epi8(indices, mask);
/* Add offsets to input values: */
len = (size_t) bytes;
buf = safe_emalloc(sizeof(char), (len + 1), 0);
- /*needed because recv doesnt set null char at end*/
+ /*needed because recv doesn't set null char at end*/
memset(buf, 0, len + 1);
}
ZVAL_NEW_STR(return_value, zend_string_alloc(len, 0));
Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len);
- /* needed because recv/read/gzread doesnt put a null at the end*/
+ /* needed because recv/read/gzread doesn't put a null at the end*/
Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
if (Z_STRLEN_P(return_value) < len / 2) {
{
char *line;
- /* loop thru lines */
+ /* loop through lines */
while( (line = get_line(self)) )
{
/* finished if we found the boundary */
range.mapped = NULL;
/* For now, we impose an arbitrary limit to avoid
- * runaway swapping when large files are passed thru. */
+ * runaway swapping when large files are passed through. */
if (length > 4 * 1024 * 1024) {
return NULL;
}
PW32CP wchar_t *php_win32_cp_env_any_to_w(const char* env);
/* This function tries to make the best guess to convert any
- given string to a wide char, also prefering the fastest code
+ given string to a wide char, also preferring the fastest code
path to unicode. It returns NULL on fail. */
__forceinline static wchar_t *php_win32_cp_conv_any_to_w(const char* in, size_t in_len, size_t *out_len)
{/*{{{*/