49 Commits

Author SHA1 Message Date
searosin
e77cf26b55 support uploads larger than 2GB (#13) 2022-01-26 09:50:50 -06:00
Remi Collet
d9ed39c3e5 use stub to generate arginfo 2021-09-29 15:00:29 +02:00
Andy Postnikov
9f6ae423f0 Remove usage of PHP_API_VERSION < 20190128
Ref non-7.4 3c2e1b6bd5
2021-09-29 04:07:02 +03:00
Andy Postnikov
709cd37d3b Clean-up php5 support
- ZEND_ENGINE_3 because it used for checks
- API after 20100412
2021-09-29 04:03:00 +03:00
Ben Ramsey
4da232004d Use the correct API numbers and exclude arginfo from pre-8.0 2021-09-28 17:46:26 -05:00
Ben Ramsey
26987fa7a4 Merge branch 'master' into cmb/79584 2021-09-28 13:40:43 -05:00
Christoph M. Becker
b0e5f122b4 Fix #79584: Segmentation fault in uploadprogress 1.1.0 and up 2021-04-30 17:46:07 +02:00
Andy Postnikov
f14654d309 Add arginfo to functions 2020-08-21 22:12:36 +03:00
Ben Ramsey
c13fac146d Add return to fix compilation warning; remove unused variable 2020-01-27 15:53:05 -06:00
Ben Ramsey
a9b5e45216 Allow building on PHP 8 2020-01-26 12:29:38 -06:00
Ben Ramsey
e12376f7fd Fix loss of data when upload_id memory freed 2020-01-25 17:08:28 -06:00
Ben Ramsey
5e15fbf598 Fix segfault caused by accessing property of empty zend_string 2020-01-25 10:43:04 -06:00
Ben Ramsey
23903f00a7 Fix memory leaks found after fixing segmentation fault 2020-01-25 10:43:04 -06:00
Ben Ramsey
7f32e7eacd Fix segmentation fault caused by failing to update vars for PHP 7 2020-01-25 10:43:04 -06:00
Ben Ramsey
b85b9b0f82 Clean up code 2020-01-24 12:10:22 -06:00
Ben Ramsey
90c99293bf Fix fprintf() format warnings during compilation 2020-01-24 11:18:46 -06:00
Ben Ramsey
ba6a22e54c Use the SUCCESS type rather than a static 0 2020-01-24 11:09:08 -06:00
Ben Ramsey
f9261896a8 Return FAILURE codes when the template is not defined 2020-01-24 11:08:26 -06:00
Ben Ramsey
cbd4ed7bbc Fix detected memory leaks 2020-01-24 10:44:08 -06:00
Peter Kokot
603515394c Remove unused Git attributes ident
The `$Id$` keywords were used in CVS and Subversion where they can be
substituted with filename, last revision number change, last changed
date, and last user who changed it.

In Git this functionality is different and can be done with Git
attribute ident. These need to be defined manually for each file in the
`.gitattributes` file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of `$Id$` keywords by removing them since
they are not used anymore.
2019-04-24 18:22:26 +02:00
Peter Kokot
827c1bedb3 Remove local variables
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.
2019-04-24 18:20:29 +02:00
Peter Kokot
0ed2914e5b Update license year ranges
This bumps year range to 2019 and removes the ranges in file headers.
2019-04-24 17:54:35 +02:00
Jan-E
95d8a0fd45 int id_lg should be size_t id_lg 2015-04-20 22:20:40 +02:00
Jan-E
7a4d6b3ac3 PHP7 compatibility 2015-04-19 18:49:48 +02:00
Christian Stocker
b2e80642b8 Fix compile error on 5.4 due to magic-quotes removal 2011-08-08 09:52:53 +00:00
Johannes Schlüter
daf4dd1456 s,function_entry,zend_function_entry,
As announced in http://news.php.net/php.pecl.dev/7123
2010-03-31 20:39:48 +00:00
Christian Stocker
1d1c43ba66 WS only 2009-06-16 05:52:57 +00:00
Christian Stocker
2eb3a97738 Fix an incorrect while loop. Thanks to terralith at yahoo dot com
http://pecl.php.net/bugs/bug.php?id=16655
2009-06-16 05:43:16 +00:00
Christian Stocker
2d45042410 apply a patch for getting the tmp directory of the system if defined
from http://pecl.php.net/bugs/bug.php?id=16570
thanks go to guenter@php.net
2009-05-26 15:11:31 +00:00
Christian Stocker
590943f8d5 added fix to hopefully make it work on WIN 2009-03-12 18:33:43 +00:00
Rob Richards
09ac32c087 fix compile on win 2008-10-28 15:33:44 +00:00
Christian Stocker
c514658d85 patch by http://pecl.php.net/bugs/bug.php?id=14525
uploadprogress_get_info truncate filename
2008-10-27 19:15:30 +00:00
Christian Stocker
ae4bcd7455 output ini entries in phpinfo() 2008-08-12 11:58:47 +00:00
Christian Stocker
0ab6221bac WS only 2008-08-11 12:24:03 +00:00
Antony Dovgal
898f84c428 minor fixes by Mikko Koppanen 2008-05-14 10:59:18 +00:00
Frank M. Kromann
9cc896b97b Prevent "zend_mm_heap corrupted". 2008-04-01 05:39:23 +00:00
Steph Fox
fcbf01fb8d - Bring the majority of PECL extensions into line with macro/x.x.x versioning.
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
2008-03-31 10:23:26 +00:00
Christian Stocker
34099496d0 remove conflict and update to 3.01 license 2007-12-03 12:51:35 +00:00
Christian Stocker
120aba6f80 lefal stuff, switch to php license 3.0 2007-12-03 06:34:27 +00:00
Rob Richards
1fd331d439 fix win build 2007-11-06 11:08:14 +00:00
Ben Ramsey
e5f3b84981 Added uploadprogress.get_contents INI directive that disables uploadprogress_get_contents() by default. 2007-10-29 22:59:39 +00:00
Ben Ramsey
4697672a2e Added proper protos to functions and cleaned up source a little bit. 2007-10-29 20:16:30 +00:00
Ben Ramsey
fdf3660374 Adding uploadprogress_get_contents() 2007-10-29 19:27:17 +00:00
Christian Stocker
33c1051309 do not reset time_start. Bug #10522 2007-07-17 09:15:15 +00:00
Christian Stocker
57671eb6ea fix some issues with missing extern and returning false values 2006-12-07 11:21:52 +00:00
Christian Stocker
3524d7d76c Solaris fix by George Adams 2006-12-06 05:35:30 +00:00
Frank M. Kromann
852bdb401e Allow build as shared object 2006-12-05 23:25:27 +00:00
Frank M. Kromann
61a1b58bce Fix win32 build 2006-12-05 23:04:44 +00:00
Christian Stocker
a886c2d2d1 Initial commit on PECL 2006-12-05 12:00:12 +00:00