}
} ZEND_TYPE_LIST_FOREACH_END();
- /* All individual checks suceeded, overall success */
+ /* All individual checks succeeded, overall success */
if (all_success) {
return INHERITANCE_SUCCESS;
}
--TEST--
-Test DateTime class inheritance : with user space fromat() method
+Test DateTime class inheritance : with user space format() method
--FILE--
<?php
//Set the default time zone
--TEST--
-Bug #30096 (gmmktime does not return the corrent time)
+Bug #30096 (gmmktime does not return the correct time)
--INI--
error_reporting=2047
--FILE--
/*
[Workaround]
-This final test seems to prove that the input string is important and that the "- 1 secord" has a negative knock-on
+This final test seems to prove that the input string is important and that the "- 1 second" has a negative knock-on
effect on the results of the diff. By modifying the datetime with ->modify everything works as expected ...
it just means you have to be careful of how we work with DateTimes .
*/
--FILE--
<?php
/* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] )
- * Description: Returns the timezone name from abbrevation
+ * Description: Returns the timezone name from abbreviation
* Source code: ext/date/php_date.c
* Alias to functions:
*/
skip = 0;
}
} else if (!strcmp(info->hnd->name, "inifile")) {
- /* "-1" is compareable to 0 but allows a non restrictive
- * access which is fater. For example 'inifile' uses this
+ /* "-1" is comparable to 0 but allows a non restrictive
+ * access which is faster. For example 'inifile' uses this
* to allow faster access when the key was already found
* using firstkey/nextkey. However explicitly setting the
* value to 0 ensures the first value.
--TEST--
-Test DOMDocument::createAttribute() for expected expection thrown when wrong parameter passed
+Test DOMDocument::createAttribute() for expected exception thrown when wrong parameter passed
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
/* }}} */
/* {{{ proto bool enchant_broker_free(resource broker)
- Destroys the broker object and its dictionnaries */
+ Destroys the broker object and its dictionaries */
PHP_FUNCTION(enchant_broker_free)
{
zval *broker;
#define TAG_GPS_AREA_INFORMATION 0x001C
#define TAG_GPS_DATE_STAMP 0x001D
#define TAG_GPS_DIFFERENTIAL 0x001E
-#define TAG_TIFF_COMMENT 0x00FE /* SHOUDLNT HAPPEN */
+#define TAG_TIFF_COMMENT 0x00FE /* SHOULDN'T HAPPEN */
#define TAG_NEW_SUBFILE 0x00FE /* New version of subfile tag */
#define TAG_SUBFILE_TYPE 0x00FF /* Old version of subfile tag */
#define TAG_IMAGEWIDTH 0x0100
szValuePtr = szValuePtr+8;
ByteCount -= 8;
} else if (!memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) {
- /* JIS should be tanslated to MB or we leave it to the user - leave it to the user */
+ /* JIS should be translated to MB or we leave it to the user - leave it to the user */
*pszEncoding = estrdup((const char*)szValuePtr);
szValuePtr = szValuePtr+8;
ByteCount -= 8;
<?php
/*
-It seems the second argument passing is not being correclty checked.
+It seems the second argument passing is not being correctly checked.
This test is failing due to this wrogn check
*/
// Get the color index for the background
$bg = imagecolorat($im, 0, 0);
-// Set the backgrund to be blue
+// Set the background to be blue
imagecolorset($im, $bg, 0, 0, 255);
include_once __DIR__ . '/func.inc';
hash->key[i] ^= 0x6A;
}
- /* Feed this result into the outter hash */
+ /* Feed this result into the outer hash */
hash->ops->hash_init(hash->context);
hash->ops->hash_update(hash->context, hash->key, hash->ops->block_size);
hash->ops->hash_update(hash->context, (unsigned char *) ZSTR_VAL(digest), hash->ops->digest_size);
// If you do not see ä... on output this means output encoding fails.
// Using UTF-8 internally allows to encode/decode ALL characters.
// &128... will stay as they are since their character codes are above 127
-// and they do not have a named entity representaion.
+// and they do not have a named entity representation.
?>
<?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?>
/* e-SSA construction: Pi placement (Pi is actually a Phi with single
* source and constraint).
- * Order of Phis is importent, Pis must be placed before Phis
+ * Order of Phis is important, Pis must be placed before Phis
*/
static void place_essa_pis(
zend_arena **arena, const zend_script *script, const zend_op_array *op_array,
/* Reuse reserved arguments stack */
res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 0x20);
#else
- /* CPU stack alocated temporary zval */
+ /* CPU stack allocated temporary zval */
res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_R4, 8);
#endif
}
}
#ifdef ZEND_JIT_USE_RC_INFERENCE
- /* Refcount may be increased by RETRUN opcode */
+ /* Refcount may be increased by RETURN opcode */
if ((info & MAY_BE_RC1) && !(info & MAY_BE_RCN)) {
for (j = 0; j < ssa->cfg.blocks_count; j++) {
if ((ssa->cfg.blocks[j].flags & ZEND_BB_REACHABLE) &&
if (ce->ce_flags & ZEND_ACC_INHERITED) {
if (!ce->parent) {
- /* property offets may be changed by inheritance */
+ /* property offsets may be changed by inheritance */
return ZEND_WRONG_PROPERTY_OFFSET;
} else {
zend_class_entry *parent = ce->parent;
--TEST--
-Inlining throgh call_user_func()
+Inlining through call_user_func()
--INI--
opcache.enable=1
opcache.enable_cli=1
@openssl_csr_get_subject($crt_file);
expect_openssl_errors('openssl_csr_get_subjec pem', [$err_pem_no_start_line]);
-// other possible cuases that are difficult to catch:
+// other possible causes that are difficult to catch:
// - ASN1_STRING_to_UTF8 fails in add_assoc_name_entry
// - invalid php_x509_request field (NULL) would cause error with CONF_get_string
try {
- // What will happen if a PS returns a differen number of result set column upon each execution?
+ // What will happen if a PS returns a different number of result set column upon each execution?
// Lets try with a SP accepting parameters...
$db->exec('DROP PROCEDURE IF EXISTS p');
$db->exec('CREATE PROCEDURE p(IN cols INT) BEGIN IF cols < 2 THEN SELECT cols AS "one"; ELSE SELECT 1 AS "one", cols AS "two"; END IF; END;');
--TEST--
Bug #67761 (Phar::mapPhar fails for Phars inside a path containing ".tar")
--SKIPIF--
-<?php extension_loaded("phar") or die("SKIP need ext/phar suppport"); ?>
+<?php extension_loaded("phar") or die("SKIP need ext/phar support"); ?>
--FILE--
<?php
if (!extension_loaded('posix')) {
die('SKIP - POSIX extension not available');
}
-
+
if (!function_exists('curl_init')) {
die('SKIP - Function curl_init() not available');
}
?>
--FILE--
<?php
-var_dump(posix_ttyname(0)); // param not a ressource
+var_dump(posix_ttyname(0)); // param not a resource
try {
var_dump(posix_ttyname(curl_init())); // wrong resource type
} catch (TypeError $e) {
int buflen = sizeof(sbuf) - 1;
int val_len = vars->val_len;
- /* use emalloc() for large values, use static array otherwize */
+ /* use emalloc() for large values, use static array otherwise */
/* There is no way to know the size of buffer snprint_value() needs in order to print a value there.
* So we are forced to probe it
echo "\n-- Pass a two-dimensional array as \$input argument --\n";
var_dump(array_change_key_case($input, CASE_UPPER));
-echo "\n-- Pass a sub-arry as \$input argument --\n";
+echo "\n-- Pass a sub-array as \$input argument --\n";
var_dump(array_change_key_case($input['English'], CASE_UPPER));
echo "Done";
}
}
--- Pass a sub-arry as $input argument --
+-- Pass a sub-array as $input argument --
array(3) {
["ONE"]=>
int(1)
$glue = ',';
$pieces = array(1, 2, 3, 4);
-// pieces as arry with numeric values
+// pieces as array with numeric values
var_dump( join($glue, $pieces) );
// pieces as array with strings values
--TEST--
-Test setlocale() function : usage variations - passing multiple valid/invlaid locales as argument
+Test setlocale() function : usage variations - passing multiple valid/invalid locales as argument
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {