/PHP-5.5/Zend/tests/ |
H A D | dereference_001.phpt | 15 var_dump(b()[0]); // Notice: Undefined offset: 0 47 Notice: Undefined offset: 0 in %s on line %d
|
/PHP-5.5/ext/mbstring/tests/ |
H A D | mb_strrpos_error1.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 26 $offset = 10; 29 var_dump( mb_strrpos($haystack, $needle, $offset, $encoding, $extra_arg) );
|
H A D | mb_strrpos_variation3.phpt | 2 Test mb_strrpos() function : usage variations - Pass different data types as $offset arg 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() different data types as $offset argument to test behaviour 43 // unexpected values to be passed to $offset argument
|
H A D | mb_strpos_variation5.phpt | 2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 16 * Test how mb_strpos() behaves when passed different integers as $offset argument 32 * Loop through integers as multiples of ten for $offset argument 33 * mb_strpos should not be able to accept negative values as $offset.
|
H A D | mb_stripos_variation5_Bug45923.phpt | 2 Test mb_stripos() function : usage variations - Pass different integers as $offset argument 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Test how mb_stripos() behaves when passed different integers as $offset argument 33 * Loop through integers as multiples of ten for $offset argument 34 * mb_stripos should not be able to accept negative values as $offset.
|
H A D | mb_strripos_variation5_Bug45923.phpt | 2 Test mb_strripos() function : usage variations - Pass different integers as $offset argument 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Test how mb_strripos() behaves when passed different integers as $offset argument 33 * Loop through integers as multiples of ten for $offset argument 34 * mb_strripos should not be able to accept negative values as $offset.
|
H A D | mb_stripos_error1.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 27 $offset = 10; 30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) );
|
H A D | mb_strpos_error1.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 26 $offset = 10; 29 var_dump( mb_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
|
/PHP-5.5/ext/pcre/tests/ |
H A D | preg_match_all_error.phpt | 6 … int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]]) 18 $offset = 10; 20 var_dump(preg_match_all($pattern, $subject, $matches, $flags, $offset, $extra_arg));
|
H A D | preg_match_error.phpt | 6 …o int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]]) 18 $offset = 10; 20 var_dump(preg_match($pattern, $subject, $matches, $flags, $offset, $extra_arg));
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | strripos_variation3.phpt | 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 32 echo "\n-- Multi line strings with no offset -- \n"; 54 -- Multi line strings with no offset --
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_num_rows.phpt | 24 function func_test_mysqli_num_rows($link, $query, $expected, $offset, $test_free = false) { 27 printf("[%03d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 32 printf("[%03d] Expecting %s/%d, got %s/%d\n", $offset + 1, 39 printf("[%03d] Expecting NULL, got %s/%s\n", $offset + 2, gettype($tmp), $tmp);
|
H A D | mysqli_poll.phpt | 56 function poll_async($offset, $link, $links, $errors, $reject, $exp_ready, $use_oo_syntax) { 69 printf("[%03d + 2] Can fetch resultset although no query has been run!\n", $offset); 72 $offset, mysqli_errno($mysqli), mysqli_error($mysqli)); 74 … printf("[%03d + 4] Cannot fetch and no error set - non resultset query (no SELECT)!\n", $offset); 80 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli)); 84 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
|
/PHP-5.5/ext/mysql/tests/ |
H A D | mysql_num_rows.phpt | 23 function func_test_mysql_num_rows($link, $query, $expected, $offset, $test_free = false) { 26 printf("[%03d] [%d] %s\n", $offset, mysql_errno($link), mysql_error($link)); 31 printf("[%03d] Expecting %s/%d, got %s/%d\n", $offset + 1, 38 printf("[%03d] Expecting boolean/false, got %s/%s\n", $offset + 2, gettype($tmp), $tmp);
|
/PHP-5.5/ext/calendar/tests/ |
H A D | jdmonthname.phpt | 11 for ($offset = 0; $offset <= 12; $offset++) { 12 echo jdmonthname($jd + $offset * 30, $mode). "\n";
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_slice_variation2.phpt | 2 Test array_slice() function : usage variations - Pass different data types as $offset arg 7 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]]) 8 * Description: Returns elements specified by offset and length 13 * Pass different data types as $offset argument to array_slice() to test behaviour 41 // unexpected values to be passed to $offset argument
|
/PHP-5.5/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_types.phpt | 13 …function test_type(&$db, $offset, $sql_type, $value, $ret_value = NULL, $pattern = NULL, $alternat… 24 $stmt->bindValue(1, $offset); 27 printf("[%03d + 1] INSERT failed, %s\n", $offset, var_export($stmt->errorInfo(), true)); 36 …printf("[%03d + 2] Fetched result seems wrong, dumping result: %s\n", $offset, var_export($row, tr… 40 if ($row['id'] != $offset) { 41 printf("[%03d + 3] Expecting %s got %s\n", $offset, $row['id']); 48 $offset, $pattern, var_export($row['label'], true)); 61 printf("[%03d + 4] %s - input = %s/%s, output = %s/%s (alternative type: %s)\n", $offset,
|
/PHP-5.5/ext/pdo_oci/ |
H A D | oci_statement.c | 384 ub4 amt, offset = 1; in oci_stmt_param_hook() local 400 &amt, offset, consume, n, in oci_stmt_param_hook() 403 offset += amt; in oci_stmt_param_hook() 419 &amt, offset, consume, n, in oci_stmt_param_hook() 611 ub4 offset; member 630 self->offset += amt; in oci_blob_write() 642 &amt, self->offset, buf, count, in oci_blob_read() 649 self->offset += amt; in oci_blob_read() 681 if (offset >= PDO_OCI_LOBMAXSIZE) { in oci_blob_seek() 684 self->offset = offset + 1; /* Oracle LOBS are 1-based, but PHP is 0-based */ in oci_blob_seek() [all …]
|
/PHP-5.5/main/streams/ |
H A D | memory.c | 141 if (offset < 0) { in php_stream_memory_seek() 142 if (ms->fpos < (size_t)(-offset)) { in php_stream_memory_seek() 147 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 153 if (ms->fpos + (size_t)(offset) > ms->fsize) { in php_stream_memory_seek() 158 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 165 if (ms->fsize < (size_t)(offset)) { in php_stream_memory_seek() 170 ms->fpos = offset; in php_stream_memory_seek() 176 if (offset > 0) { in php_stream_memory_seek() 180 } else if (ms->fsize < (size_t)(-offset)) { in php_stream_memory_seek() 185 ms->fpos = ms->fsize + offset; in php_stream_memory_seek() [all …]
|
H A D | plain_wrapper.c | 506 ret = fseek(data->file, offset, whence); in php_stdiop_seek() 669 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option() 676 range->offset = data->sb.st_size; in php_stdiop_set_option() 761 if (range->length == 0 && range->offset > 0 && range->offset < size) { in php_stdiop_set_option() 767 if (range->offset >= size) { in php_stdiop_set_option() 768 range->offset = size; in php_stdiop_set_option() 773 if (range->offset != 0) { in php_stdiop_set_option() 780 delta = range->offset - loffs; in php_stdiop_set_option() 1185 int offset = 0; in php_plain_files_mkdir() local 1196 offset = p - buf + 1; in php_plain_files_mkdir() [all …]
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_dirent.c | 114 cd->size = cd->offset = 0; in _zip_cdir_new() 128 cd->offset = ftello(fp); in _zip_cdir_write() 135 cd->size = ftello(fp) - cd->offset; in _zip_cdir_write() 143 _zip_write4(cd->offset, fp); in _zip_cdir_write() 196 de->offset = 0; in _zip_dirent_init() 286 zde->offset = 0; in _zip_dirent_read() 292 zde->offset = _zip_read4(&cur); in _zip_dirent_read() 402 de->offset = 0; in _zip_dirent_torrent_normalize() 454 _zip_write4(zde->offset, fp); in _zip_dirent_write()
|
/PHP-5.5/ext/date/lib/ |
H A D | tm2unixtime.c | 402 after = timelib_get_time_zone_info(tz->sse - before->offset, tzi); in do_adjust_timezone() 406 ((tz->sse - after->offset) >= (after->transistion_time + (before->offset - after->offset))) && in do_adjust_timezone() 407 ((tz->sse - after->offset) < after->transistion_time) in do_adjust_timezone() 410 if ((before->offset != after->offset) && !in_transistion) { in do_adjust_timezone() 411 tmp = -after->offset; in do_adjust_timezone() 422 tz->z = gmt_offset->offset; in do_adjust_timezone()
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fpm_conf.c | 61 static char *fpm_conf_set_long(zval *value, void **config, intptr_t offset); 68 static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset); 212 * (int *) ((char *) *config + offset) = value_y ? 1 : 0; in fpm_conf_set_boolean() 219 char **config_val = (char **) ((char *) *config + offset); in fpm_conf_set_string() 254 * (int *) ((char *) *config + offset) = atoi(val); in fpm_conf_set_integer() 271 * (long int *) ((char *) *config + offset) = atol(val); 312 * (int *) ((char *) *config + offset) = seconds; in fpm_conf_set_time() 336 * (int *) ((char *) *config + offset) = log_level; in fpm_conf_set_log_level() 345 int *conf = (int *) ((char *) *config + offset); in fpm_conf_set_syslog_facility() 495 int *ptr = (int *) ((char *) *config + offset); in fpm_conf_set_rlimit_core() [all …]
|
/PHP-5.5/ext/zlib/tests/ |
H A D | gzseek_error.phpt | 13 $offset = 1; 17 var_dump(gzseek( $h, $offset, $whence, $extra_arg ) );
|
/PHP-5.5/ext/gd/libgd/ |
H A D | gd_gd2.c | 44 int offset; member 154 if (gdGetInt(&cidx[i].offset, in) != 1) { in _gd2GetHeader() 162 if (cidx[i].offset < 0 || cidx[i].size < 0) { in _gd2GetHeader() 213 static int _gd2ReadChunk (int offset, char *compBuf, int compSize, char *chunkBuf, uLongf * chunkLe… in _gd2ReadChunk() argument 217 if (gdTell(in) != offset) { in _gd2ReadChunk() 218 GD2_DBG(php_gd_error("Positioning in file to %d", offset)); in _gd2ReadChunk() 219 gdSeek(in, offset); in _gd2ReadChunk() 221 GD2_DBG(php_gd_error("Already Positioned in file to %d", offset)); in _gd2ReadChunk() 783 chunkIdx[chunkNum].offset = gdTell(out); in _gdImageGd2() 803 GD2_DBG(php_gd_error("Chunk %d size %d offset %d", x, chunkIdx[x].size, chunkIdx[x].offset)); in _gdImageGd2() [all …]
|