summaryrefslogtreecommitdiff
path: root/ext/standard/link.c
Commit message (Collapse)AuthorAgeFilesLines
* Move cwd_state and path related routines to size_tAnatol Belski2017-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having `int` there is no real profit in the size or speed, while unsigned improves security and overall integration. ZPP supplied strings can be then accepted directly and structs can be still handled with smaller unsigned types for size reasons, which is safe. Yet some related places are to go. basic move tsrm_realpath_r to size_t fix conditions and sync with affected places touch ocurrences of php_sys_readlink usage follow up on phar path handling remove duplicated check move zend_resolve_path and related pieces to size_t touch yet resolve path related places remove cast missing pieces missing piece yet cleanups for php_sys_readlink for ssize_t fix wrong return
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Use new param API in standardSara Golemon2016-12-301-12/+14
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
* | Merge branch 'PHP-5.6'Stanislav Malyshev2015-04-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: (27 commits) fix non-standard C update NEWS 5.4.41 next fix CVE num update NEWS Fix bug #69441 (Buffer Overflow when parsing tar/zip/phar in phar_set_inode) fix test fix type in fix for #69085 fix memory leak & add test Fix tests fix CVE num Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) ... Conflicts: Zend/zend_exceptions.c ext/curl/interface.c ext/dom/document.c ext/fileinfo/libmagic/softmagic.c ext/gd/gd.c ext/hash/hash.c ext/pgsql/pgsql.c ext/phar/phar.c ext/phar/phar_internal.h ext/standard/http_fopen_wrapper.c ext/standard/link.c ext/standard/streamsfuncs.c ext/xmlwriter/php_xmlwriter.c ext/zlib/zlib.c
| * Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-111-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4.40: Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) Fixed bug #68901 (use after free) Fixed bug #68740 (NULL Pointer Dereference) Fix bug #66550 (SQLite prepared statement use-after-free) Better fix for #68601 for perf https://bitbucket.org/libgd/gd-libgd/commits/81e9a993f2893d651d225646378e3fd1b7465467 Fix bug #68601 buffer read overflow in gd_gif_in.c Revert "Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4" Fixed bug #69293 Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable.
| | * Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions)Stanislav Malyshev2015-04-111-1/+1
| | |
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
| | * Happy New YearXinchen Hui2013-01-011-1/+1
| | |
| * | Bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | Bump yearXinchen Hui2014-01-031-1/+1
| | |
* | | fix warningsMichael Wallner2015-01-301-2/+2
| | |
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-6/+6
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-26/+26
| | |
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | fix linkinfo()Anatol Belski2014-08-271-1/+1
| | |
* | | first show to make 's' work with size_tAnatol Belski2014-08-271-3/+3
| | |
* | | fixed several long vs zend_long castsAnatol Belski2014-08-261-2/+2
| | |
* | | master renames phase 1Anatol Belski2014-08-251-2/+2
| | |
* | | fix macros in the 5 basic extensionsAnatol Belski2014-08-161-2/+2
| | |
* | | Use better data structures (incomplete)Dmitry Stogov2014-02-131-1/+1
| | |
* | | Bump yearXinchen Hui2014-01-031-1/+1
|/ /
* | Happy New YearXinchen Hui2013-01-011-1/+1
|/
* Merge branch 'PHP-5.3' into PHP-5.4Rasmus Lerdorf2012-03-251-1/+12
|\
| * open_basedir check for linkinfoRasmus Lerdorf2012-03-251-1/+12
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * - Year++Felipe Pena2011-01-011-1/+1
| |
| * - fix #39863, do not accept paths with NULL in them. See ↵Pierre Joye2010-11-181-0/+20
| | | | | | | | http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
| * - use php_sys_readlinkPierre Joye2010-09-131-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | - Added new parameter parsing option (p - for valid path (string without ↵Felipe Pena2011-06-061-3/+3
| | | | | | | | | | | | | | | | null byte in the middle)) # The tests will be fixed in the next commits
* | - Year++Felipe Pena2011-01-011-1/+1
| |
* | - use php_sys_readlinkPierre Joye2010-09-131-1/+1
| |
* | Removed safe_modeKalle Sommer Nielsen2010-04-261-21/+0
|/ | | | | | | * Removed ini options, safe_mode* * Removed --enable-safe-mode --with-exec-dir configure options on Unix * Updated extensions, SAPI's and core * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Check the relevant path for open_basedir in symlink()Arnaud Le Blanc2008-08-111-1/+12
|
* MFH:Arnaud Le Blanc2008-08-101-5/+5
| | | | | | | Do not expand $target in symlink(). This made it impossible to symlink to a symlink. This also caused the target to be wrongly expanded relatively to the CWD when target was not an absolute path.
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: syncJani Taskinen2007-11-061-26/+24
|
* Fixed symlink("", "somthing") and link("", "somthing") in ZTS modeDmitry Stogov2007-07-101-0/+2
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Additional expand_filepath() checksIlia Alshanetsky2006-09-161-6/+8
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* NetWare LibC has pwd.hAnantha Kesari H Y2005-02-211-2/+0
|
* Fixed open_basedir & safe_mode bypass inside readlink() function.Ilia Alshanetsky2004-11-021-0/+8
|
* Now NetWare LibC supports proper stat structure no need of CLIB_STAT_PATCH ↵Anantha Kesari H Y2004-09-251-4/+0
| | | | and all such checks