You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Hunting down memory leaks](doc/hunting_down_memory_leaks.md)
226
226
@@ -234,12 +234,12 @@ Provides aggregated data about memory usage by functions. Far less resource inte
234
234
235
235
Troubleshooting
236
236
---------------
237
-
## "A lot of memory usage is reported by the `memory_usage` entry, but the cumulative size of the items in the summary is far lower that the memory usage"
237
+
## "A lot of memory usage is reported by the `memory_usage` entry, but the cumulative size of the items in the summary is far lower than the memory usage"
238
238
239
239
A lot of memory is used internally by the Zend Engine itself to compile PHP files, to run the virtual machine, to execute the garbage collector, etc... Another part of the memory is usually taken by PHP extensions themselves. And the remaining memory usage comes from the PHP data structures from your program.
240
240
241
-
In some case, several hundred of megabytes can be used internally by some PHP extensions. A good example are the PDO extension and MySQLi extension.
242
-
By default, when executing a SQL query, they will buffer all the results inside the PHP memory:
241
+
In some cases, several hundred megabytes can be used internally by some PHP extensions. Examples are the PDO extension and MySQLi extension.
242
+
By default, when executing a SQL query they will buffer all the results inside the PHP memory:
In case of very large number of results, this will consume a lot of memory, and this memory usage is not caused by the data you have in your objects or array manipulated by your program, but by the way the extension works.
@@ -253,15 +253,15 @@ But PHP Meminfo is only able to get information on memory used by the data struc
253
253
Hence the difference between those numbers, which can be quite big.
254
254
255
255
## "Call to undefined function" when calling `meminfo_dump`
256
-
It certainly means the extension is not enabled.
256
+
This means the extension is not enabled.
257
257
258
258
Check the PHP Info output and look for the MemInfo data.
259
259
260
260
To see the PHP Info output, just create a page calling the `phpinfo();` function, and load it from your browser, or call `php -i` from the command line.
261
261
262
262
## Why most tests are "skipped"?
263
263
264
-
While doing a `make test`, some test will need JSON capabilities. But The
264
+
While doing a `make test`, some tests will need JSON capabilities. But the
265
265
compilation system generates a clean env by removing all configuration
266
266
directives that load extensions.
267
267
So if JSON capabilites are packaged as a separate extension (instead of
@@ -274,7 +274,7 @@ command, by providing the `php` executable:
0 commit comments