Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/php-src/ext/random/
H A Dgammasection.c60 double s = b / g - a / g; in ceilint()
64 e = -a / g - (s - b / g); in ceilint()
66 e = b / g - (s + a / g); in ceilint()
92 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_closed_open()
98 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_closed_open()
120 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_closed_closed()
129 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_closed_closed()
149 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_open_closed()
157 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_open_closed()
177 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_open_open()
[all …]
/php-src/ext/pcre/tests/
H A Dbug79257.phpt6 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches);
8 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
11 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
35 ["g"]=>
43 ["g"]=>
58 ["g"]=>
81 ["g"]=>
106 ["g"]=>
120 ["g"]=>
139 ["g"]=>
[all …]
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dtest_cp932_1.phpt26 $item = "�e�X�g�}���`�o�C�g�E�p�X"; // cp932 string
49 getting basename of %s\�e�X�g�}���`�o�C�g�E�p�X42\�e�X�g�}���`�o�C�g�E�p�X4
50 string(%d) "�e�X�g�}���`�o�C�g�E�p�X4"
52 string(%d) "%s\�e�X�g�}���`�o�C�g�E�p�X42\�e�X�g�}���`�o�C�g�E�p�X4"
H A Dtest_cp932_2.phpt26 $item = "�e�X�g�}���`�o�C�g�E�p�X"; // cp932 string
51 getting basename of %s\�e�X�g�}���`�o�C�g�E�p�X33
52 string(%d) "�e�X�g�}���`�o�C�g�E�p�X33"
54 string(%d) "%s\�e�X�g�}���`�o�C�g�E�p�X33"
H A Dtest_cp932_3.phpt27 $item = "�e�X�g�}���`�o�C�g�E�p�X77"; // cp932 string
40 string(%d) "%s\�e�X�g�}���`�o�C�g�E�p�X77"
43 �e�X�g�}���`�o�C�g�E�p�X77
/php-src/ext/standard/tests/strings/
H A Dpack_float.phpt40 'pack g',
41 bin2hex(pack("g", "")),
42 bin2hex(pack("g", "a")),
43 bin2hex(pack("g", " ")),
45 bin2hex(pack("g", 0)),
46 bin2hex(pack("g", 1)),
47 bin2hex(pack("g", 1.0)),
51 bin2hex(pack("g", -1)),
94 'unpack g',
149 string(6) "pack g"
[all …]
/php-src/Zend/tests/
H A Dbug29104.phpt7 function g()
9 echo "function g - begin\n";
16 echo "function g - end\n";
21 $a->g();
25 function g - begin
26 function g - end
H A Dgh8841.phpt6 echo "Before calling g()\n";
7 g(1);
8 echo "After calling g()\n";
17 eval('function g($x): int { return $x; }');
22 Before calling g()
23 After calling g()
/php-src/ext/dom/tests/
H A DDOM4_DOMNode_before_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
26 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
27 <g:item_type>street</g:item_type>
28 <g:item_type>house</g:item_type>
H A DDOM4_DOMNode_after_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
26 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
27 <g:item_type>house</g:item_type>
28 <g:item_type>street</g:item_type>
H A DDOM4_DOMNode_append_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
23 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
24 <g:item_type>house</g:item_type>
H A DDOM4_DOMNode_prepend_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
23 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
24 <g:item_type>house</g:item_type>
/php-src/tests/lang/
H A Dengine_assignExecutionOrder_001.phpt11 function g() {
12 echo "in g()\n";
18 ${f()} = g();
22 $a[f()] = g();
77 in g()
83 in g()
92 in g()
101 in g()
116 in g()
128 in g()
[all …]
/php-src/Zend/tests/zend_ini/
H A Dzend_ini_parse_quantity.phpt102 # "1g"
105 # "1g "
174 # "1 g"
177 # "1 g "
246 # "+1g"
249 # "+1g "
318 # "+1 g"
390 # "-1g"
393 # "-1g "
462 # "-1 g"
[all …]
/php-src/ext/gmp/tests/
H A Dgmp_sub.phpt19 var_dump($g = gmp_sub(10000, 10001));
20 var_dump(gmp_strval($g));
21 var_dump($g = gmp_sub(10000, -1));
22 var_dump(gmp_strval($g));
25 var_dump($g = gmp_sub(10000, new stdclass));
26 var_dump(gmp_strval($g));
31 var_dump($g = gmp_sub(new stdclass, 100));
32 var_dump(gmp_strval($g));
H A Dgmp_strval.phpt26 $g = gmp_init("9765456");
27 var_dump(gmp_strval($g));
29 var_dump(gmp_strval($g, -1));
34 var_dump(gmp_strval($g, 100000));
38 var_dump(gmp_strval($g, 10));
40 $g = gmp_init("-3373333");
41 var_dump(gmp_strval($g));
43 var_dump(gmp_strval($g, -1));
48 var_dump(gmp_strval($g, 100000));
52 var_dump(gmp_strval($g, 10));
/php-src/ext/gd/libgd/
H A Dgd_rotate.c69 if (g>255) { in gdImageSkewX()
70 g = 255; in gdImageSkewX()
116 int i, iYPos=0, r, g, b, a; in gdImageSkewY() local
160 if (g>255) { in gdImageSkewY()
161 g = 255; in gdImageSkewY()
204 int c,r,g,b,a; in gdImageRotate90() local
229 g = gdImageGreen(src,c); in gdImageRotate90()
251 int c,r,g,b,a; in gdImageRotate180() local
276 g = gdImageGreen(src,c); in gdImageRotate180()
299 int c,r,g,b,a; in gdImageRotate270() local
[all …]
H A Dgd_filter.c117 int r,g,b,a; in gdImageNegate() local
150 int r,g,b,a; in gdImageGrayScale() local
172 r = g = b = (int) (.299 * r + .587 * g + .114 * b); in gdImageGrayScale()
190 int r,g,b,a; in gdImageBrightness() local
214 g = g + brightness; in gdImageBrightness()
218 g = (g > 255)? 255 : ((g < 0)? 0:g); in gdImageBrightness()
235 int r,g,b,a; in gdImageContrast() local
271 gf = (double)g/255.0; in gdImageContrast()
307 int r,g,b,a; in gdImageColor() local
316 g = g + green; in gdImageColor()
[all …]
/php-src/Zend/tests/generators/
H A Dyield_from_iterator.phpt5 function g() {
11 $g = g();
12 foreach ($g as $yielded) {
H A Dyield_precedence.phpt18 $g = gen();
19 for ($g->rewind(), $i = 1; $g->valid(); $g->send($i), $i++) {
20 echo "{$g->key()} => {$g->current()}\n";
H A Dbug70965.phpt10 function bar($g) {
11 yield from $g;
19 foreach($gens as $g) {
20 var_dump($g->current());
/php-src/ext/gd/tests/
H A Dbug43073.phpt35 $g = imagecreate(800, 800);
36 $bgnd = imagecolorallocate($g, 255, 255, 255);
37 $black = imagecolorallocate($g, 0, 0, 0);
38 $red = imagecolorallocate($g, 255, 0, 0);
44 $bbox = imagettftext($g, 24, (int)$angle, (int)(400+$x), (int)(400+$y), $black, $font, 'ABCDEF');
45 imagepolygon($g, $bbox, $red);
59 imagepng($g, "$cwd/bug43073.png");
H A Dbug48732.phpt17 $g = imagecreate(100, 50);
18 $bgnd = imagecolorallocate($g, 255, 255, 255);
19 $black = imagecolorallocate($g, 0, 0, 0);
20 $bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\n");
21 imagepng($g, "$cwd/bug48732.png");
H A Dbug55005.phpt9 $g = imagecreate(300, 300);
10 $bgnd = imagecolorallocate($g, 255, 255, 255);
11 $fgnd = imagecolorallocate($g, 0, 0, 0);
13 fn () => imagefilledpolygon($g, array(100,10, 100,100, 180,100), 2, $fgnd),
14 fn () => imagepolygon($g, array(200,10, 200,100, 280,100), 2, $fgnd)
/php-src/ext/fileinfo/libmagic/
H A Dfuncs.c775 &g->data1, &g->data2, &g->data3, &g->data4[0], &g->data4[1], in file_parse_guid()
776 &g->data4[2], &g->data4[3], &g->data4[4], &g->data4[5], in file_parse_guid()
777 &g->data4[6], &g->data4[7]) == 11 ? 0 : -1; in file_parse_guid()
783 &g->data1, &g->data2, &g->data3, &data16[0], &data16[1], in file_parse_guid()
788 g->data4[i] = data16[i]; in file_parse_guid()
802 g->data1, g->data2, g->data3, g->data4[0], g->data4[1], in file_print_guid()
803 g->data4[2], g->data4[3], g->data4[4], g->data4[5], in file_print_guid()
804 g->data4[6], g->data4[7]); in file_print_guid()
808 g->data1, g->data2, g->data3, g->data4[0], g->data4[1], in file_print_guid()
809 g->data4[2], g->data4[3], g->data4[4], g->data4[5], in file_print_guid()
[all …]

Completed in 43 milliseconds

12345678910>>...14