Anatol Belski
b35555f6cd
fix datatype mismatches
2014-12-02 09:15:11 +01:00
Anatol Belski
e99040659e
fix datatype mismatches and warns
2014-10-27 16:38:48 +01:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Anatol Belski
481bf25b6a
restore the length var and fix the com_dotnet ini
2014-09-01 20:34:33 +02:00
Dmitry Stogov
88d7ca44f6
Refactored INI subsystem to use zend_string* instead of char*
2014-09-01 20:57:33 +04:00
Anatol Belski
af59e92b24
master renames phase 7
2014-08-25 21:51:49 +02:00
Anatol Belski
4d997f63d9
master renames phase 3
2014-08-25 20:22:49 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
8ee2a4a9b5
first shot on merging the core fro the int64 branch
2014-08-16 11:16:11 +02:00
Xinchen Hui
c242518bf0
There should been memory leaks(and don't use pointer cast)
2014-05-08 15:20:13 +08:00
Pierre Joye
38c886a449
-- missing length declaration, may have worked w/some gcc as length is not used in the macro but still need it, ifdef just make code uncertain. will get opt out anyway if not used
2014-05-07 07:31:21 +02:00
Dmitry Stogov
f9927a6c97
Merge mainstream 'master' branch into refactoring
...
During merge I had to revert:
Nikita's patch for php_splice() (it probably needs to be applyed again)
Bob Weinand's patches related to constant expression handling (we need to review them carefully)
I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway)
Conflicts:
Zend/zend.h
Zend/zend_API.c
Zend/zend_ast.c
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_constants.c
Zend/zend_exceptions.c
Zend/zend_execute.c
Zend/zend_execute.h
Zend/zend_execute_API.c
Zend/zend_hash.c
Zend/zend_highlight.c
Zend/zend_language_parser.y
Zend/zend_language_scanner.c
Zend/zend_language_scanner_defs.h
Zend/zend_variables.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/date/php_date.c
ext/dom/documenttype.c
ext/hash/hash.c
ext/iconv/iconv.c
ext/mbstring/tests/zend_multibyte-10.phpt
ext/mbstring/tests/zend_multibyte-11.phpt
ext/mbstring/tests/zend_multibyte-12.phpt
ext/mysql/php_mysql.c
ext/mysqli/mysqli.c
ext/mysqlnd/mysqlnd_reverse_api.c
ext/mysqlnd/php_mysqlnd.c
ext/opcache/ZendAccelerator.c
ext/opcache/zend_accelerator_util_funcs.c
ext/opcache/zend_persist.c
ext/opcache/zend_persist_calc.c
ext/pcre/php_pcre.c
ext/pdo/pdo_dbh.c
ext/pdo/pdo_stmt.c
ext/pdo_pgsql/pgsql_driver.c
ext/pgsql/pgsql.c
ext/reflection/php_reflection.c
ext/session/session.c
ext/spl/spl_array.c
ext/spl/spl_observer.c
ext/standard/array.c
ext/standard/basic_functions.c
ext/standard/html.c
ext/standard/mail.c
ext/standard/php_array.h
ext/standard/proc_open.c
ext/standard/streamsfuncs.c
ext/standard/user_filters.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
main/php_variables.c
sapi/phpdbg/phpdbg.c
sapi/phpdbg/phpdbg_bp.c
sapi/phpdbg/phpdbg_frame.c
sapi/phpdbg/phpdbg_help.c
sapi/phpdbg/phpdbg_list.c
sapi/phpdbg/phpdbg_print.c
sapi/phpdbg/phpdbg_prompt.c
2014-04-26 00:32:51 +04:00
Dmitry Stogov
72c287bd23
Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word
2014-04-21 18:25:34 +04:00
Dmitry Stogov
3d17219cd8
Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family require second argument to be real pointer.
...
&(ht)->nInternalPointer should be passed instead of NULL.
zend_hash_update_current_key() may work only with internal pointer.
2014-04-07 23:14:17 +04:00
Dmitry Stogov
76cc99fe60
Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc)
2014-04-03 15:26:23 +04:00
Xinchen Hui
069c158c20
Fixed php_info related
2014-03-02 21:31:38 +08:00
Dmitry Stogov
5de7115679
Use better data structures (incomplete; able to run bench.php)
2014-02-18 16:27:38 +04:00
Dmitry Stogov
2b9b9afa7a
Use better data structures (incomplete)
2014-02-17 17:59:18 +04:00
Dmitry Stogov
f4cfaf36e2
Use better data structures (incomplete)
2014-02-10 10:04:30 +04:00
Andrey Hristov
1c7f54d4f7
Merge branch 'PHP-5.6'
...
Conflicts:
NEWS
ext/openssl/xp_ssl.c
2014-01-29 15:32:02 +02:00
Remi Collet
da84f3af75
Fixed Request #66574 Allow multiple paths in php_ini_scanned_path
...
php_ini_scanned_path, from --with-config-file-scan-dir option or
from PHP_INI_SCAN_DIR environment variable allow a single path.
In some case it could be useful to allow multiple.
In the proposed patch, multiple paths are allow, using syntax inspired
from Unix MANPATH (: separated list, empty string for builtin value).
For example, this allow to use:
PHP_INI_SCAN_DIR=/foo/php.d:/bar/php.d php
PHP_INI_SCAN_DIR=:/myproject/php.d php
PHP_INI_SCAN_DIR=/myproject/php.d: php
Real use case: in SCL for dependent collections where each collection
provides a separate tree for extensions, libraries and ini files.
2014-01-29 09:53:22 +01:00
Xinchen Hui
0f53e37494
Merge branch 'PHP-5.6'
2014-01-03 11:09:07 +08:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Kalle Sommer Nielsen
bd58146ad6
Kill another TSRMLS_FETCH() in the zend extension loading code
2013-12-18 07:59:47 +01:00
Anatol Belski
e7a4cf8d7e
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
fix buffer overrun
2013-07-15 17:35:29 +02:00
Anatol Belski
9561e598a0
fix buffer overrun
2013-07-15 17:34:36 +02:00
David Soria Parra
c542e969f2
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fix typos
2013-03-19 15:11:48 +01:00
Carson McDonald
c6f6bf88d8
Fix typos
2013-03-19 15:11:34 +01:00
Dmitry Stogov
0b8b6a727d
Added ability to load zend_extensions without absolute path names
2013-03-17 11:42:25 +04:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Felipe Pena
8775a37559
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Xinchen Hui
b5766cdcac
Implemented FR #54514 (Get php binary path during script execution).
2011-12-07 10:33:13 +00:00
Xinchen Hui
5aa1fb6074
Implemented FR #54514 (Get php binary path during script execution).
2011-12-07 10:33:13 +00:00
Xinchen Hui
0420858004
Merge -r317306 to trunk
2011-12-07 10:28:56 +00:00
Pierre Joye
d435ddbe52
- be sure to check if the var ha not been removed between the two calls
2011-09-26 08:49:28 +00:00
Rasmus Lerdorf
6379f87b31
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
2011-08-06 21:10:29 +00:00
Rasmus Lerdorf
1bc34a491c
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
2011-08-06 21:10:29 +00:00
Pierre Joye
801d140782
- fix bug #54204 , Can't set a value with a PATH section in php.ini
2011-07-18 10:25:36 +00:00
Pierre Joye
ba22d8a37b
- fix bug #54204 , Can't set a value with a PATH section in php.ini
2011-07-18 10:25:36 +00:00
Pierre Joye
458ce08ab3
- path len check and fix buffer overrun
2011-01-19 14:21:46 +00:00
Pierre Joye
52aa5735f1
- path len sanity check
2011-01-17 14:29:16 +00:00
Pierre Joye
80e5f0f774
- remove local redeclaration
2011-01-10 08:28:47 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Jérôme Loyet
e1b87cce1f
- Fixed #52045 (FPM tries to open php.ini from the current dir)
...
- Add php_ini_ignore_cwd to _sapi_module_struct
2010-11-11 17:24:27 +00:00
Adam Harvey
02b2a28882
Fix bug #52786 (PHP should reset section to [PHP] after ini sections). Patch by
...
Fedora at famillecollet dot com.
2010-09-09 05:11:05 +00:00
Felipe Pena
1fc65cbf03
- Fixed crash on non-Windows build
2010-08-30 21:34:54 +00:00
Pierre Joye
2721bbfcf9
- fix possible leak and error while fetching PHPRC
2010-08-30 17:05:56 +00:00
Antony Dovgal
01f828ebb0
fix bug #51276 (php_load_extension() is missing when HAVE_LIBDL is undefined)
2010-06-08 12:54:11 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* 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
2010-04-26 23:53:30 +00:00
Jani Taskinen
e421bee7af
- Fixed bug #48811 (Directives in PATH section do not get applied to subdirectories)
2010-01-16 21:01:12 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Pierre Joye
e4adfe4f61
- #48779 , fix another use case where / usage may differ
2009-10-15 13:09:25 +00:00
Pierre Joye
e5d4b019b9
- #48779 , improve fix, drop usage of _tolower and use zend_strtolower
2009-10-12 14:40:27 +00:00
Pierre Joye
112379ba24
- fix possible issue in TS environment (we don't have to do that anymore anyway in 5.3+)
2009-10-11 21:04:35 +00:00
Pierre Joye
4d63bd1132
- #48779 , don't loop twice over the path chars
2009-10-11 20:50:53 +00:00
Felipe Pena
994307d429
- Fixed build and comment-style
2009-10-09 20:01:16 +00:00
Garrett Serack
8e5a00e546
- changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case insensitive (garretts)
2009-10-09 19:43:00 +00:00
Derick Rethans
d29d24427f
- MFH: Get rid of the four different versions of zend_extension* and only use
...
zend_extension. Because of the API identifier change in PHP 5.3 you also get
a proper warning message now.
#- [DOC]
2009-05-18 21:33:38 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Marcus Boerger
d6d4121546
- MFH Do not show empty ini directive tables for modules without ini entries.
2008-12-30 19:08:54 +00:00
Pierre Joye
1463a824e8
- move declaration on top and fix build error
2008-08-13 17:49:13 +00:00
Jani Taskinen
e5e6f553a2
MFH
2008-08-13 00:53:28 +00:00
Felipe Pena
cf7384aa40
- MFH: Constness (Added const qualifier to several function parameters)
2008-08-12 17:20:25 +00:00
Dmitry Stogov
ba8e3174ce
Optimized request startup sequence for php.ini without per dir and per host configurations
2008-04-15 11:31:58 +00:00
Marcus Boerger
fa94dabd97
- MFH Rename dump_config_hash() to get_config_hash() as it doesn't dump
2008-02-03 14:35:59 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Jani Taskinen
c75b88760b
MFH: No zval is stored here
2007-11-26 16:34:30 +00:00
Jani Taskinen
02d966c263
MFH:- Added support for [HOST=www.example.com] special sections
...
MFH:- Allowed using full path to load modules using "extension" directive
2007-11-09 16:27:43 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Jani Taskinen
1674976346
MFH: Fixed win32 build.
2007-09-28 10:23:38 +00:00
Jani Taskinen
09b6f37f20
MFH:
...
- Added ".htaccess" style user-defined php.ini files support for
CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
in php.ini. All directives set in these sections will not be able to be
overridden in user-defined ini-files or during runtime in the specified
path.
- Improved php.ini handling:
. Added better error reporting for syntax errors in php.ini files
. Allowed "ini-variables" to be used almost everywhere ini php.ini files
. Allowed using alphanumeric/variable indexes in "array" ini options
. Fixed get_cfg_var() to be able to return "array" ini options
- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
characters)
2007-09-28 02:05:10 +00:00
Jani Taskinen
9be89ed6f6
MFH: ws fixes
2007-08-31 08:16:13 +00:00
Jani Taskinen
b9ddb5cba6
MFH
2007-08-31 08:09:50 +00:00
Antony Dovgal
0db4f06f13
MFH
2007-05-19 12:53:06 +00:00
Antony Dovgal
d85fc29edf
MFH
2007-05-14 12:19:34 +00:00
Hannes Magnusson
909894682d
MFH: bug#41361 (shell_exec() does not find binaries)
2007-05-12 16:06:46 +00:00
Hannes Magnusson
63c11738f8
use php_strtok_r() rather than strsep()
...
# Fixes build on, for instance, solaris
2007-05-10 19:48:30 +00:00
Hannes Magnusson
448dbac84f
MFH: Fixed PHP CLI to use the php.ini from the binary location
2007-05-06 14:01:26 +00:00
Dmitry Stogov
e1814f0dbe
WIN64 support
2007-04-16 08:09:56 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Antony Dovgal
112462d102
MFH
2006-12-28 12:18:54 +00:00
Dmitry Stogov
7d14dad02e
MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests).
2006-09-19 20:33:12 +00:00
Edin Kadribasic
ef058cdd9a
Search for php.ini in CWD in all sapi's *but* CLI.
...
This patch reverses wrong behavaiour introduced before the
release of 5.1.0.
# We should probably consider killing adding CWD php.ini lookup
# altogether.
2006-09-05 11:54:15 +00:00
Dmitry Stogov
c946b4d1b2
In addtion to path to php.ini, PHPRC now may specify full file name
2006-08-03 11:04:52 +00:00
Dmitry Stogov
acb1e07980
Changed priority of PHPRC environment variable on win32 to be higher then value from registry.
2006-07-04 06:35:49 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
1890173d8c
Revert
2005-09-02 14:05:46 +00:00
foobar
96873fecef
it is good idea to return something always
2005-09-02 08:24:14 +00:00
foobar
64cfbf539f
MFH: - Fixed bug #34307 (OnUpdateStringUnempty INI options can be set empty)
2005-09-01 14:44:15 +00:00
foobar
000a9e3015
- Fixed problem with -dextension=foobar.so not having it's MINIT run.
2005-08-08 16:49:44 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
f66d5f0cc5
- Fixed few logic errors in php*.ini search path creation as documented here:
...
http://fi.php.net/manual/en/configuration.php#configuration.file
#
# Before this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("/www/php/lib/php.ini", O_RDONLY) = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
# With this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
# open("/usr/src/php5_1_full/sapi/cli/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
# open("/www/php/lib/php.ini", O_RDONLY) = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
2005-07-29 14:29:27 +00:00
Antony Dovgal
98694f919c
ws fix
2005-07-27 15:16:14 +00:00
Hartmut Holzgraefe
882cb200cc
edge case: do not remove trailing slash for root directory (Bug #33882 )
2005-07-27 15:13:50 +00:00
Hartmut Holzgraefe
7e071d9a1f
php.ini search logic needs to use the absolute path of the running binary
...
when looking for php.ini in the directory the php binary is installed in
2005-07-27 15:12:18 +00:00
Dmitry Stogov
f47c78487b
Improved PHP extension loading mechanism with support for module dependencies and conflicts
2005-06-17 09:39:23 +00:00