Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/php-src/ext/dom/lexbor/lexbor/css/
H A Dcss.c35 if (memory == NULL) { in lxb_css_memory_init()
69 memory->ref_count = 1; in lxb_css_memory_init()
99 if (memory == NULL) { in lxb_css_memory_destroy()
104 memory->objs = lexbor_dobject_destroy(memory->objs, true); in lxb_css_memory_destroy()
108 memory->mraw = lexbor_mraw_destroy(memory->mraw, true); in lxb_css_memory_destroy()
112 memory->tree = lexbor_mraw_destroy(memory->tree, true); in lxb_css_memory_destroy()
119 return memory; in lxb_css_memory_destroy()
129 memory->ref_count++; in lxb_css_memory_ref_inc()
131 return memory; in lxb_css_memory_ref_inc()
138 memory->ref_count--; in lxb_css_memory_ref_dec()
[all …]
H A Dproperty.h442 lxb_css_property__undef_create(lxb_css_memory_t *memory);
445 lxb_css_property__undef_destroy(lxb_css_memory_t *memory,
492 lxb_css_property_order_create(lxb_css_memory_t *memory);
495 lxb_css_property_order_destroy(lxb_css_memory_t *memory,
516 lxb_css_property_width_create(lxb_css_memory_t *memory);
519 lxb_css_property_width_destroy(lxb_css_memory_t *memory,
876 lxb_css_property_top_create(lxb_css_memory_t *memory);
879 lxb_css_property_top_destroy(lxb_css_memory_t *memory,
912 lxb_css_property_left_create(lxb_css_memory_t *memory);
915 lxb_css_property_left_destroy(lxb_css_memory_t *memory,
[all …]
H A Dbase.h53 (*lxb_css_style_create_f)(lxb_css_memory_t *memory);
60 (*lxb_css_style_destroy_f)(lxb_css_memory_t *memory,
97 lxb_css_memory_init(lxb_css_memory_t *memory, size_t prepare_count);
100 lxb_css_memory_clean(lxb_css_memory_t *memory);
103 lxb_css_memory_destroy(lxb_css_memory_t *memory, bool self_destroy);
106 lxb_css_memory_ref_inc(lxb_css_memory_t *memory);
109 lxb_css_memory_ref_dec(lxb_css_memory_t *memory);
112 lxb_css_memory_ref_dec_destroy(lxb_css_memory_t *memory);
H A Dat_rule.h51 lxb_css_at_rule_destroy(lxb_css_memory_t *memory, void *value,
70 lxb_css_at_rule__undef_create(lxb_css_memory_t *memory);
73 lxb_css_at_rule__undef_destroy(lxb_css_memory_t *memory,
89 lxb_css_at_rule__custom_create(lxb_css_memory_t *memory);
92 lxb_css_at_rule__custom_destroy(lxb_css_memory_t *memory,
108 lxb_css_at_rule_media_create(lxb_css_memory_t *memory);
111 lxb_css_at_rule_media_destroy(lxb_css_memory_t *memory,
120 lxb_css_at_rule_namespace_create(lxb_css_memory_t *memory);
123 lxb_css_at_rule_namespace_destroy(lxb_css_memory_t *memory,
H A Drule.h52 lxb_css_memory_t *memory; member
289 lxb_css_rule_create(lxb_css_memory_t *memory, size_t size, in lxb_css_rule_create() argument
300 rule->memory = memory; in lxb_css_rule_create()
306 lxb_css_rule_list_create(lxb_css_memory_t *memory) in lxb_css_rule_list_create() argument
308 return (lxb_css_rule_list_t *) lxb_css_rule_create(memory, in lxb_css_rule_list_create()
370 lxb_css_rule_at_create(lxb_css_memory_t *memory) in lxb_css_rule_at_create() argument
373 lxb_css_rule_create(memory, sizeof(lxb_css_rule_at_t), in lxb_css_rule_at_create()
378 lxb_css_rule_style_create(lxb_css_memory_t *memory) in lxb_css_rule_style_create() argument
386 lxb_css_rule_bad_style_create(lxb_css_memory_t *memory) in lxb_css_rule_bad_style_create() argument
394 lxb_css_rule_declaration_list_create(lxb_css_memory_t *memory) in lxb_css_rule_declaration_list_create() argument
[all …]
H A Dstylesheet.h23 lxb_css_memory_t *memory; member
29 lxb_css_stylesheet_create(lxb_css_memory_t *memory);
39 lxb_css_stylesheet_prepare(lxb_css_parser_t *parser, lxb_css_memory_t *memory,
/php-src/ext/sysvsem/tests/
H A Dsysv.phpt2 General semaphore and shared memory test
8 $MEMSIZE = 512; // size of shared memory to allocate
31 echo "Fail to attach shared memory.\n";
35 echo "Success to attach shared memory.\n";
44 echo "Write var1 to shared memory.\n";
53 echo "Write var2 to shared memory.\n";
77 // remove shared memory segmant from SysV
96 Success to attach shared memory.
97 Write var1 to shared memory.
98 Write var2 to shared memory.
[all …]
/php-src/ext/standard/tests/streams/
H A Dbug61371.phpt2 Bug #61371: stream_context_create() causes memory leaks on use streams_socket_create
14 echo 'memory: '.round($current / 1024, 0)."kb\n";
31 memory: %dkb
33 memory: %dkb
35 memory: %dkb
36 memory: %dkb
38 memory: %dkb
40 memory: %dkb
H A Dbug61371-unix.phpt2 Bug #61371: stream_context_create() causes memory leaks on use streams_socket_create
20 echo 'memory: '.round($current / 1024, 0)."kb\n";
37 memory: %dkb
39 memory: %dkb
41 memory: %dkb
42 memory: %dkb
44 memory: %dkb
46 memory: %dkb
H A Dbug44818.phpt2 Bug #44818 (php://memory writeable when opened read only)
12 test("php://memory","r");
13 test("php://memory","r+");
18 php://memory, r
23 php://memory, r+
H A Dbug75031.phpt2 Bug #75031: Append mode in php://temp and php://memory
16 test_75031("php://memory", "w+");
18 test_75031("php://memory", "a+");
/php-src/ext/dom/tests/modern/html/interactions/
H A DHTMLDocument_documentURI.phpt11 $memory = fopen("php://memory", "w+");
12 fwrite($memory, "foobar");
13 rewind($memory);
14 $dom = Dom\HTMLDocument::createFromFile("php://memory");
16 fclose($memory);
46 string(12) "php://memory"
/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselectors.c174 lxb_css_memory_t *memory, in lxb_css_selectors_parse_prepare() argument
188 parser->old_memory = parser->memory; in lxb_css_selectors_parse_prepare()
191 parser->memory = memory; in lxb_css_selectors_parse_prepare()
226 parser->memory = parser->old_memory; in lxb_css_selectors_parse_finish()
235 lxb_css_memory_t *memory; in lxb_css_selectors_parse_list() local
239 memory = parser->memory; in lxb_css_selectors_parse_list()
255 if (memory == NULL) { in lxb_css_selectors_parse_list()
256 memory = lxb_css_memory_create(); in lxb_css_selectors_parse_list()
264 (void) lxb_css_memory_destroy(memory, true); in lxb_css_selectors_parse_list()
281 if (list == NULL && memory != parser->memory) { in lxb_css_selectors_parse_list()
[all …]
/php-src/ext/dom/tests/modern/xml/
H A DXMLDocument_createFromFile_empty_input.phpt7 $dom = Dom\XMLDocument::createFromFile("php://memory");
9 fclose($memory);
12 Warning: Dom\XMLDocument::createFromFile(): Document is empty in php://memory, line: 1 in %s on lin…
16 #0 %s(%d): Dom\XMLDocument::createFromFile('php://memory')
/php-src/ext/shmop/tests/
H A D001.phpt9 $write_d2 = "test #2 append data to shared memory segment";
29 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
39 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
41 /* try to append data to the shared memory segment, this should fail */
64 echo "data in memory is: " . shmop_read($shm_id, 0, strlen($write_d1 . $write_d2)) . "\n";
77 data in memory is: test #1 of the shmop() extension
79 data in memory is: test #1 of the shmop() extension
83 data in memory is: test #1 of the shmop() extensiontest #2 append data to shared memory segment
/php-src/ext/standard/tests/file/
H A Dbug71882.phpt2 Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
5 $fd = fopen("php://memory", "w+");
/php-src/Zend/tests/
H A Dbug81070.phpt2 Bug #81070 Setting memory limit to below current usage
13 Warning: Failed to set memory limit to 3145728 bytes (Current memory usage is %d bytes) in %s on li…
H A Dbug55509.phpt2 Bug #55509 (segfault on x86_64 using more than 2G memory)
15 // check the available memory
27 die('skip Not enough memory.');
49 die('skip Not enough memory.');
59 die('skip Not enough memory.');
84 Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %sbug55509.…
H A Dbug64660.phpt2 Bug #64660 (Segfault on memory exhaustion within function definition)
11 Parse error: memory exhausted in %s on line %d
/php-src/ext/zlib/tests/
H A Ddeflate_init_error.phpt27 var_dump(deflate_init(ZLIB_ENCODING_DEFLATE, ['memory' => 0]));
33 var_dump(deflate_init(ZLIB_ENCODING_DEFLATE, ['memory' => 10]));
43 deflate_init(): "memory" option must be between 1 and 9
44 deflate_init(): "memory" option must be between 1 and 9
/php-src/ext/pdo_sqlite/tests/
H A Dbug43831.phpt23 $foo = new Foo("sqlite::memory:");
28 $bar = new Bar("sqlite::memory:");
34 $bar = new PDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true));
35 $baz = new MyPDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true));
H A Dgh9032.phpt9 $db = new PDO("sqlite::memory:", null, null, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
11 $db->exec('attach database \':memory:\' AS "db1"');
16 $st->execute([':a' => ':memory:']);
H A Dpdo_sqlite_filename_uri.phpt8 // create with in-memory database using shared cached
9 $db = new PDO('sqlite:file::memory:?cache=shared');
13 // create second connection to in-memory database
14 $db = new PDO('sqlite:file::memory:?cache=shared');
/php-src/ext/tidy/tests/
H A Dparsing_inexistent_file.phpt20 Warning: tidy::parseFile(): Cannot load "does_not_exist.html" into memory in %s on line %d
23 Warning: tidy_parse_file(): Cannot load "does_not_exist.html" into memory in %s on line %d
25 Cannot load "does_not_exist.html" into memory
/php-src/ext/sqlite3/tests/
H A Dgh9032.phpt9 $db = new SQLite3(":memory:");
12 $db->exec('attach database \':memory:\' AS "db1"');
17 $st->bindValue("a", ":memory:");

Completed in 39 milliseconds

12345678910>>...23