Home
last modified time | relevance | path

Searched refs:sub (Results 26 – 50 of 251) sorted by relevance

1234567891011

/PHP-7.4/ext/gd/libgd/
H A Dgd_filter.c29 int gdImageScatter(gdImagePtr im, int sub, int plus) in gdImageScatter() argument
33 s.sub = sub; in gdImageScatter()
40 int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors) in gdImageScatterColor() argument
44 s.sub = sub; in gdImageScatterColor()
58 int sub = scatter->sub, plus = scatter->plus; in gdImageScatterEx() local
60 if (plus == 0 && sub == 0) { in gdImageScatterEx()
63 else if (sub >= plus) { in gdImageScatterEx()
72 dest_x = (int)(x + ((rand() % (plus - sub)) + sub)); in gdImageScatterEx()
73 dest_y = (int)(y + ((rand() % (plus - sub)) + sub)); in gdImageScatterEx()
94 dest_x = (int)(x + ((rand() % (plus - sub)) + sub)); in gdImageScatterEx()
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Dend_variation2.phpt13 * 2. a sub-array
24 echo "\n-- Pass a sub-array as \$array_arg --\n";
41 -- Pass a sub-array as $array_arg --
H A Dnext_variation2.phpt13 * 2. a sub-array
25 echo "\n-- Pass a sub-array as \$array_arg --\n";
43 -- Pass a sub-array as $array_arg --
H A Darsort_variation8.phpt2 Test arsort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defau…
12 …* testing arsort() by providing arrays contains sub arrays for $array argument with flowing flag v…
25 // array contains null sub array
31 // array contains sub arrays
38 echo "\n-- Testing arsort() by supplying various arrays containing sub arrays --\n";
63 -- Testing arsort() by supplying various arrays containing sub arrays --
H A Dasort_variation8.phpt2 Test asort() function : usage variations - sort array with diff. sub arrays, 'sort_flags' as defaul…
12 …* testing asort() by providing arrays contains sub arrays for $array argument with flowing flag va…
25 // array contains null sub array
31 // array contains sub arrays
38 echo "\n-- Testing asort() by supplying various arrays containing sub arrays --\n";
63 -- Testing asort() by supplying various arrays containing sub arrays --
H A Dprev_variation2.phpt13 * 2. a sub-array
29 echo "\n-- Pass a sub-array as \$array_arg --\n";
47 -- Pass a sub-array as $array_arg --
H A Darray_slice_variation8.phpt13 * 2. a sub-array as $input argument
23 echo "\n-- \$input is a sub-array --\n";
48 -- $input is a sub-array --
H A Darray_push_variation3.phpt13 * 2. as sub-array as $stack arg
24 echo "\n-- Pass sub-array as \$stack argument --\n";
51 -- Pass sub-array as $stack argument --
H A Deach_variation5.phpt14 * 2. a sub-array
30 echo "\n-- Pass each() a sub-array --\n";
86 -- Pass each() a sub-array --
H A Darray_merge_variation8.phpt22 echo "\n-- Merge an array and a sub-array --\n";
52 -- Merge an array and a sub-array --
H A Darray_change_key_case_variation6.phpt23 echo "\n-- Pass a sub-arry as \$input argument --\n";
62 -- Pass a sub-arry as $input argument --
/PHP-7.4/ext/date/tests/
H A Dbug49059.phpt2 Bug #49059 (DateTime::diff() repeats previous sub() operation)
14 $date1 = $date1->sub(new DateInterval("P2D"));
15 print "\$date1 after sub: " . $date1->format("Y-m-d") . "\n";
30 $date1 after sub: 2009-03-25
H A Drfc-datetime_and_daylight_saving_time-type1.phpt96 * Forward Transitions, sub().
103 . $end->sub($interval)->format($date_format) . "\n";
109 . $end->sub($interval)->format($date_format) . "\n";
115 . $end->sub($interval)->format($date_format) . "\n";
121 . $end->sub($interval)->format($date_format) . "\n";
127 . $end->sub($interval)->format($date_format) . "\n";
133 . $end->sub($interval)->format($date_format) . "\n";
139 . $end->sub($interval)->format($date_format) . "\n";
262 * Backward Transitions, sub().
269 . $end->sub($interval)->format($date_format) . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type2.phpt96 * Forward Transitions, sub().
103 . $end->sub($interval)->format($date_format) . "\n";
109 . $end->sub($interval)->format($date_format) . "\n";
115 . $end->sub($interval)->format($date_format) . "\n";
121 . $end->sub($interval)->format($date_format) . "\n";
127 . $end->sub($interval)->format($date_format) . "\n";
133 . $end->sub($interval)->format($date_format) . "\n";
139 . $end->sub($interval)->format($date_format) . "\n";
262 * Backward Transitions, sub().
269 . $end->sub($interval)->format($date_format) . "\n";
[all …]
H A Dbug55253.phpt2 Bug #55253 (DateTime::add() and sub() result -1 hour on objects with time zone type 2)
30 $date3->sub($interval);
31 $date2->sub($interval);
H A DDateTime_data-dates.inc23 // NOTE: sub() produces different answer.
52 // NOTE: sub() produces different answer.
/PHP-7.4/ext/standard/tests/class_object/
H A Dis_a.phpt15 function _is_a($sub) {
18 …echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' :…
19 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub)…
20 …cho str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this), …
21 …_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of($this, $su…
22 …'is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get_class($this)…
23 …_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_of(get_class($th…
27 …echo str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' :…
28 …echo str_pad('is_a( STRING:undefB, '.$sub.') = ', 60). (is_a('undefB', $sub) ? 'yes' : 'no')."\n";
29 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.',false) = ', 60). (is_subclass_of('undefB', …
[all …]
/PHP-7.4/ext/standard/tests/dir/
H A Ddir_variation7.phpt28 |-> sub_dir ( sub parent )
45 // remove the write and execute permisson from sub parent
51 // remove the execute permisson from parent dir, allowing all permission for sub dir
52 chmod($sub_dir_path, 0777); // all permisson to sub dir
H A Dopendir_variation5.phpt27 * |-> sub_dir ( sub parent )
44 // remove the write and execute permisson from sub parent
51 // remove the execute permisson from parent dir, allowing all permission for sub dir
52 chmod($sub_dir_path, 0777); // all permisson to sub dir
H A Dscandir_variation5.phpt28 * |-> sub_dir ( sub parent )
45 // remove the write and execute permisson from sub parent
51 // remove the execute permisson from parent dir, allowing all permission for sub dir
52 chmod($sub_dir_path, 0777); // all permisson to sub dir
H A Dopendir_variation6-win32.phpt37 var_dump( opendir($dir_path . "/sub?dir1") );
71 Warning: opendir(%s/opendir_variation6/sub?dir1): %s in %s on line %d
73 Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
/PHP-7.4/ext/phar/tests/
H A Ddir.phpt37 file_put_contents('phar://' . __DIR__ . '/ok.phar/sub/directory.txt', 'hi');
38 mkdir('phar://' . __DIR__ . '/ok.phar/sub');
39 mkdir('phar://' . __DIR__ . '/ok.phar/sub/directory.txt');
73 Warning: mkdir(): phar error: cannot create directory "sub" in phar "%sok.phar", directory already …
75 …mkdir(): phar error: cannot create directory "sub/directory.txt" in phar "%sok.phar", phar error: …
/PHP-7.4/ext/spl/
H A Dspl_functions.c123 int spl_add_classes(zend_class_entry *pce, zval *list, int sub, int allow, int ce_flags) in spl_add_classes() argument
129 if (sub) { in spl_add_classes()
133 spl_add_classes(pce, list, sub, allow, ce_flags); in spl_add_classes()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dcdf_time.c73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() local
74 if (days < sub) in cdf_getday()
76 days -= sub; in cdf_getday()
/PHP-7.4/tests/classes/
H A Dinterface_implemented.phpt15 function _is_a($sub) {
16 echo 'is_a('.get_class($this).', '.$sub.') = '.(($this instanceof $sub) ? 'yes' : 'no')."\n";

Completed in 40 milliseconds

1234567891011