/PHP-7.0/ext/standard/tests/file/ |
H A D | userstreams.phpt | 130 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 131 $this->position = $offset; 138 if ($offset >= 0) { 139 $this->position += $offset; 214 $offset = rand(0, $DATALEN - 1); 215 $position = $offset; 218 $offset = -rand(0, $DATALEN - 1); 219 $position = $DATALEN + $offset; 222 $offset = rand(0, $DATALEN - 1); 223 $offset -= $position; [all …]
|
H A D | include_userstream_003.phpt | 53 function stream_seek($offset, $whence) 56 return fseek($this->stream, $offset, $whence); 60 if ($offset < $this->data && $offset >= 0) { 61 $this->pos = $offset; 68 if ($offset >= 0) { 69 $this->pos += $offset; 76 if (strlen($this->data) + $offset >= 0) { 77 $this->pos = strlen($this->data) + $offset;
|
/PHP-7.0/ext/pcre/pcrelib/testdata/ |
H A D | testoutput26 | 8 Failed: character value in \x{} or \o{} is too large at offset 9 11 Failed: character value in \x{} or \o{} is too large at offset 10 15 Error -10 (bad UTF-32 string) offset=0 reason=3
|
/PHP-7.0/ext/spl/ |
H A D | spl_array.c | 298 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr() 388 ZVAL_DEREF(offset); in spl_array_get_dimension_ptr() 414 if (!offset) { in spl_array_read_dimension_ex() 416 offset = &tmp; in spl_array_read_dimension_ex() 460 if (!offset) { in spl_array_write_dimension_ex() 462 offset = &tmp; in spl_array_write_dimension_ex() 467 zval_ptr_dtor(offset); in spl_array_write_dimension_ex() 480 if (!offset) { in spl_array_write_dimension_ex() 515 ZVAL_DEREF(offset); in spl_array_write_dimension_ex() 601 ZVAL_DEREF(offset); in spl_array_unset_dimension_ex() [all …]
|
/PHP-7.0/ext/spl/tests/ |
H A D | bug66834.phpt | 9 public function offsetExists($offset) { 11 return parent::offsetExists($offset); 14 public function offsetGet($offset) { 16 return parent::offsetGet($offset); 23 public function offsetExists($offset) { 25 return parent::offsetExists($offset); 32 public function offsetGet($offset) { 34 return parent::offsetGet($offset); 41 public function offsetGet($offset) 43 return parent::offsetGet(str_rot13($offset)); [all …]
|
/PHP-7.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_limits.phpt | 13 function bind_many($offset, $link, $num_params, $rows, $eval = true) { 43 printf("[%03d + 01] [%d] %s\n", $offset, $link->errno, $link->error); 49 printf("[%03d + 02] [%d] %s\n", $offset, $link->errno, $link->error); 53 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm… 60 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 70 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 75 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm… 80 printf("[%03d + 04] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 88 printf("[%03d + 05] [%d] %s\n", $offset, $link->errno, $link->error); 97 printf("[%03d + 06] [%d] %s\n", $offset, $link->errno, $link->error);
|
H A D | mysqli_stmt_result_metadata_sqltests.phpt | 19 $offset, $sql, 32 $offset + 1, $sql); 36 $offset + 2, $sql); 42 $offset + 3, $sql, 79 $offset + 5, $sql); 90 $offset + 6, $sql, 98 $offset + 7, $sql, 103 $offset + 8, $sql, 110 $offset + 9, $sql, 116 $offset + 10, $sql, [all …]
|
H A D | mysqli_reap_async_query.phpt | 39 function poll_async($offset, $link, $links, $errors, $reject, $exp_ready, $use_oo_syntax) { 43 $offset, $exp_ready, $tmp); 52 printf("[%03d + 2] %s\n", $offset, var_export($res->fetch_assoc(), true)); 55 $offset, mysqli_errno($mysqli), mysqli_error($mysqli)); 57 … printf("[%03d + 4] Cannot fetch and no error set - non resultset query (no SELECT)!\n", $offset); 63 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli)); 67 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
|
H A D | mysqli_fetch_assoc_zerofill.phpt | 14 function zerofill($offset, $link, $datatype, $insert = 1) { 25 $offset, mysqli_errno($link), mysqli_error($link)); 31 $offset, mysqli_errno($link), mysqli_error($link)); 45 printf("[%03d] Expecting '%s' got '%s'\n", $offset, $expected, $row['zero']); 50 printf("[%03d] Length reported is too small to run test\n", $offset);
|
H A D | mysqli_fetch_array_large.phpt | 14 function mysqli_fetch_array_large($offset, $link, $package_size) { 35 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 41 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 48 $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link)); 55 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 61 …printf("[%03d + 5] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 67 …printf("[%03d + 6] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 74 $offset, $random_char, $label, $len, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 121 $offset = 3; 135 if (!mysqli_fetch_array_large($offset++, $link, $package_size)) {
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobfromsteam.phpt | 33 function blob_from_stream($offset, $db, $file, $blob) { 38 printf("[%03d + 1] Cannot remove old test file\n", $offset); 44 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file); 51 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file); 60 printf("[%03d + 4] %s\n", $offset, var_export($db->errorInfo(), true)); 66 printf("[%03d + 5] Cannot create test file '%s'\n", $offset, $file); 75 $offset, 82 printf("[%03d + 7] Failed to INSERT data, %s\n", $offset, var_export($stmt->errorInfo(), true)); 89 printf("[%03d + 8] INSERT and/or SELECT has failed, dumping data.\n", $offset); 102 printf("[%03d + 9] %s\n", $offset, var_export($stmt->errorInfo(), true)); [all …]
|
H A D | pdo_mysql_stmt_bindparam_types.phpt | 31 printf("[%03d/%s + 1] %s\n", $offset, ($native) ? 'native' : 'emulated', 36 printf("[%03d/%s + 2] %s\n", $offset, ($native) ? 'native' : 'emulated', 44 printf("[%03d/%s + 3] %s\n", $offset, ($native) ? 'native' : 'emulated', 49 printf("[%03d/%s + 4] %s\n", $offset, ($native) ? 'native' : 'emulated', 55 printf("[%03d/%s + 5] %s\n", $offset, ($native) ? 'native' : 'emulated', 63 $offset, ($native) ? 'native' : 'emulated', 71 printf("[%03d/%s + 7] %s\n", $offset, ($native) ? 'native' : 'emulated', 78 $offset, ($native) ? 'native' : 'emulated', 85 $offset, ($native) ? 'native' : 'emulated', 94 function pdo_mysql_stmt_bindparam_types($db, $offset, $sql_type, $value) { [all …]
|
/PHP-7.0/ext/standard/tests/array/ |
H A D | array_slice_variation6.phpt | 5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]]) 6 * Description: Returns elements specified by offset and length 17 $offset = 1; 21 var_dump(array_slice($input, $offset, $i)); 24 var_dump(array_slice($input, $offset, PHP_INT_MAX)); 27 var_dump(array_slice($input, $offset, -PHP_INT_MAX));
|
/PHP-7.0/ext/calendar/tests/ |
H A D | jddayofweek.phpt | 11 for ($offset = 0; $offset <= 7; $offset++) { 12 echo jddayofweek($jd + $offset, $mode). "\n";
|
/PHP-7.0/ext/dom/tests/ |
H A D | DOMComment_insertData_error1.phpt | 11 //Negative offset 18 echo "Throws DOMException for -ve offset\n"; 24 Throws DOMException for -ve offset
|
H A D | DOMComment_insertData_error2.phpt | 11 //offset to large 18 echo "Throws DOMException for offset too large\n"; 24 Throws DOMException for offset too large
|
/PHP-7.0/ext/standard/tests/general_functions/ |
H A D | parse_ini_basic.phpt | 105 ["offset values"]=> 110 string(14) "basic offset 1" 112 string(14) "basic offset 2" 117 string(11) "long offset" 122 string(13) "string offset" 127 string(15) "quoted offset 1" 129 string(15) "quoted offset 2" 131 string(20) "quoted string offset" 133 string(20) "single quoted offset"
|
/PHP-7.0/main/streams/ |
H A D | mmap.c | 25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() argument 29 range.offset = offset; in _php_stream_mmap_range()
|
/PHP-7.0/ext/intl/grapheme/ |
H A D | grapheme_string.c | 113 int32_t offset = 0; in PHP_FUNCTION() local 129 offset = (int32_t) loffset; in PHP_FUNCTION() 130 noffset = offset >= 0 ? offset : haystack_len + offset; in PHP_FUNCTION() 175 int32_t offset = 0; in PHP_FUNCTION() local 191 offset = (int32_t) loffset; in PHP_FUNCTION() 204 int32_t noffset = offset >= 0 ? offset : haystack_len + offset; in PHP_FUNCTION() 244 int32_t offset = 0; in PHP_FUNCTION() local 260 offset = (int32_t) loffset; in PHP_FUNCTION() 273 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION() 307 int32_t offset = 0; in PHP_FUNCTION() local [all …]
|
/PHP-7.0/ext/iconv/tests/ |
H A D | iconv_strpos.phpt | 14 function foo($haystk, $needle, $offset, $to_charset = false, $from_charset = false) 19 var_dump(strpos($haystk, $needle, $offset)); 21 var_dump(iconv_strpos($haystk, $needle, $offset, $to_charset)); 23 var_dump(iconv_strpos($haystk, $needle, $offset));
|
/PHP-7.0/Zend/tests/ |
H A D | bug40833.phpt | 38 function offsetUnset($offset) 44 function offsetSet($offset, $value) 48 function offsetGet($offset) 53 function offsetExists($offset)
|
/PHP-7.0/ext/intl/resourcebundle/ |
H A D | resourcebundle_class.c | 177 static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_value, int fallback) in resourcebundle_array_fetch() argument 188 if(Z_TYPE_P(offset) == IS_LONG) { in resourcebundle_array_fetch() 190 meindex = (int32_t)Z_LVAL_P(offset); in resourcebundle_array_fetch() 192 } else if(Z_TYPE_P(offset) == IS_STRING) { in resourcebundle_array_fetch() 193 mekey = Z_STRVAL_P(offset); in resourcebundle_array_fetch() 231 zval *resourcebundle_array_get(zval *object, zval *offset, int type, zval *rv) in resourcebundle_array_get() argument 233 if(offset == NULL) { in resourcebundle_array_get() 237 resourcebundle_array_fetch(object, offset, rv, 1); in resourcebundle_array_get() 256 zval * offset; in ZEND_END_ARG_INFO() local 265 resourcebundle_array_fetch(object, offset, return_value, fallback); in ZEND_END_ARG_INFO() [all …]
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_source_filep.c | 86 static int _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error); 87 static int _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error); 348 new_current = args->offset; in read_file() 363 new_current = (zip_int64_t)ctx->end + args->offset; in read_file() 367 new_current = (zip_int64_t)ctx->current + args->offset; in read_file() 481 _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error) in _zip_fseek_u() argument 483 if (offset > ZIP_INT64_MAX) { in _zip_fseek_u() 487 return _zip_fseek(f, (zip_int64_t)offset, whence, error); in _zip_fseek_u() 492 _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error) in _zip_fseek() argument 494 if (offset > ZIP_FSEEK_MAX || offset < ZIP_FSEEK_MIN) { in _zip_fseek() [all …]
|
/PHP-7.0/ext/standard/tests/strings/ |
H A D | strpos.phpt | 74 1, // offset = 1 75 "string", // offset as string, converts to zero 76 NULL, // offset as string, converts to zero 77 "", // offset as string, converts to zero 253 Position of 'Hello' with offset '1' is => int(74) 254 Position of 'Hello' with offset 'string' is => 257 Position of 'Hello' with offset '' is => int(0) 258 Position of 'Hello' with offset '' is => 264 Position of 'Hello' with offset '0' is => int(0) 266 Position of 'Hello' with offset '' is => int(0) [all …]
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_trace_mach.c | 85 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); in fpm_trace_get_long() local 86 vm_offset_t base = (uintptr_t) (addr) - offset; in fpm_trace_get_long() 94 *data = * (long *) (local_page + offset); in fpm_trace_get_long()
|