Home
last modified time | relevance | path

Searched refs:nth (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/dom/tests/modern/css_selectors/
H A Dpseudo_classes_nth_child.phpt2 CSS Selectors - Pseudo classes: nth-child
20 test_helper($dom, 'h2:nth-of-type(n+2):nth-last-of-type(n+2)');
22 test_helper($dom, 'h2:nth-child(2)');
23 test_helper($dom, 'h2:nth-last-child(2)');
24 test_helper($dom, 'h2:nth-child(2n + 1)');
26 test_helper($dom, 'h2:nth-child(3n - 2)');
31 --- Selector: h2:nth-of-type(n+2):nth-last-of-type(n+2) ---
39 --- Selector: h2:nth-child(2) ---
41 --- Selector: h2:nth-last-child(2) ---
43 --- Selector: h2:nth-child(2n + 1) ---
[all …]
H A Dpseudo_classes_nth_child_of.phpt2 CSS Selectors - Pseudo classes: nth-child of
21 test_helper($dom, 'h2:nth-child(even of .hi)');
22 test_helper($dom, 'h2.hi:nth-child(even)');
23 test_helper($dom, 'h2:nth-child(odd of .hi)');
24 test_helper($dom, 'h2.hi:nth-child(odd)');
33 --- Selector: h2:nth-child(even of .hi) ---
36 --- Selector: h2.hi:nth-child(even) ---
39 --- Selector: h2:nth-child(odd of .hi) ---
42 --- Selector: h2.hi:nth-child(odd) ---
48 --- Selector: h2.hi:nth-last-child(even) ---
[all …]
H A Dpseudo_classes_nth_col.phpt2 CSS Selectors - Pseudo classes: nth-(last-)col
28 test_failure($dom, ':nth-col(1)', true);
29 test_failure($dom, ':nth-last-col(1)', true);
33 --- Selector: :nth-col(1) ---
34 Code 12 Invalid selector (Selectors. Not supported: nth-col)
35 --- Selector: :nth-last-col(1) ---
36 Code 12 Invalid selector (Selectors. Not supported: nth-last-col)
/php-src/ext/gmp/tests/
H A Dgmp_root.phpt56 gmp_root(): Argument #2 ($nth) must be odd if argument #1 ($a) is negative
61 gmp_root(): Argument #2 ($nth) must be greater than 0
62 gmp_root(): Argument #2 ($nth) must be greater than 0
H A Dgmp_remroot.phpt95 gmp_rootrem(): Argument #2 ($nth) must be odd if argument #1 ($a) is negative
108 gmp_rootrem(): Argument #2 ($nth) must be greater than or equal to 1
109 gmp_rootrem(): Argument #2 ($nth) must be greater than or equal to 1
/php-src/ext/gmp/
H A Dgmp.c1499 zend_long nth; in ZEND_FUNCTION() local
1503 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &nth) == FAILURE) { in ZEND_FUNCTION()
1507 if (nth <= 0) { in ZEND_FUNCTION()
1514 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1521 mpz_root(gmpnum_result, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1530 zend_long nth; in ZEND_FUNCTION() local
1539 if (nth <= 0) { in ZEND_FUNCTION()
1546 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1562 mpz_rootrem(gmpnum_result1, gmpnum_result2, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1564 mpz_root(gmpnum_result1, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
[all …]
H A Dgmp.stub.php116 function gmp_root(GMP|int|string $num, int $nth): GMP {} argument
122 function gmp_rootrem(GMP|int|string $num, int $nth): array {} argument
H A Dgmp_arginfo.h75 ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)
80 ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)

Completed in 17 milliseconds