| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| |
| |
| | |
* PHP-7.4:
Fix MySQL local infile / attr handling on big endian systems
|
| | |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fix MySQL local infile / attr handling on big endian systems
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Make sure pointer types match what is used by libmysql everywhere.
Closes GH-5380.
|
| |/ /
| |
| |
| | |
Closes GH-4732.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The actual leak is observed in ext/pdo_mysql/tests/bug_74376.phpt.
The persistent connection leaks because a refcount decrement on a
result is missed. The refcount decrement is missed because
free_result_contents is used, rather than free_result.
Looking at other uses of free_result_contents, it looks like they
could also suffer from this problem. Apart from one case,
free_result_contents is always used to release the result entirely
(I've adjusted the one differing case to only free meta), so I'm
moving most of the logic from free_result into free_result_contents.
The only difference is now that free_result will skip_result first.
|
| |\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
This patch follows previous license year ranges updates. With new
approach source code files now have simplified headers with license
information without year ranges.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.
A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.
This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.
With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.
Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files. All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734, which is a squash of PR #3313.
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
Co-authored-by: Joe Watkins <krakjoe@php.net>
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Since more than an year it not possible to create commands in the heap
but they are allocated on the stack and directly run. In this regard, it
doesn't make sense to have all the vararg stuff. Commands made sense
to be created and pushed onto a stack then a general executor will
run thru the stack and execute/handle the commands.
|
| |/
|
|
| |
And perform some code cleanups this allows.
|
| |
|
|
| |
circular structures).
|
| |
|
|
| |
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
|
| | |
|
| | |
|
| |
|
|
| |
MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
|
| |
|
|
| |
allocation/deallocation.
|
| | |
|
| | |
|
| |
|
|
| |
(even for persistent connections these entities don't relive request boundary)
|
| |\
| |
| |
| |
| |
| |
| |
| | |
* PHP-7.0:
Fix invalid free of persistent results on error/connection loss in mysqlnd (bug 74376)
Conflicts:
ext/mysqlnd/mysqlnd_ps.c
|
| | |
| |
| |
| | |
(bug 74376)
|
| |\ \
| |/ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| | |
| |
| |
| |
| | |
Drops 24 bytes from each chunk. For the example in bug #71468 it
reduces memory usage by 30%.
|
| |\ \
| |/
| |
| |
| |
| |
| | |
* PHP-7.0:
Update header to PHP Version 7
Happy new year (Update copyright to 2016)
Happy new year (Update copyright to 2016)
|
| | |\
| | |
| | |
| | |
| | | |
* PHP-5.6:
Happy new year (Update copyright to 2016)
|
| | | | |
|
| | | | |
|
| |\ \ \
| |/ / |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
- less dereferencing in mysqlnd_ps . Dereference stmt->conn only once and
use a stack variable. Also make the source cleaner.
|
| | | |
| | |
| | |
| | | |
- remove unused macros
|
| | | |
| | |
| | |
| | | |
- move things out of mysqlnd_priv.h
|
| | | |
| | |
| | |
| | |
| | | |
- move from char* + len to MYSQLND_STRING
- add some more const modifiers
|
| | | |
| | |
| | |
| | | |
- better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)
|
| | | |
| | |
| | |
| | |
| | | |
- rename MYSQLND_NET to MYSQLND_PPEC (protocol packet envelope codec).
PPEC does only the encoding and decoding to the protocol frame.
|
| | | |
| | |
| | |
| | | |
- clean up some things
|
| | | |
| | |
| | |
| | |
| | | |
- now send_command_handle_response() also doesn't depend directly on
MYSQLND_CONN_DATA
|
| | | |
| | |
| | |
| | |
| | | |
- pass connection closer and its context
- remove unused parameter
|
| | | |
| | |
| | |
| | | |
- rename the macro for updating the connection state
|
| | | |
| | |
| | |
| | | |
- Remove the SET_STMT_ERROR macro
|
| | | |
| | |
| | |
| | | |
- make MYSQLND_ERROR_INFO a class
|