Anatol Belski
4ff4837966
Merge remote-tracking branch 'origin/master' into str_size_and_int64
...
Conflicts:
Zend/zend.c
Zend/zend_ini_scanner.c
2014-01-04 02:17:11 +01:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Derick Rethans
5137cb5f0c
Fixed (some of) add/sub.
...
This worked in PHP 5.4 already, but with the introduction of DateTimeImmutable
this code was not correctly merged.
2014-01-02 12:45:48 +00:00
Anatol Belski
b923ee32c9
added ZEND_ABS and revamped some related stuff
2013-12-29 16:39:15 +01:00
Anatol Belski
6125278290
more semantical replacements LONG vs. INT
2013-12-19 08:40:41 -08:00
Anatol Belski
f58d0b35ed
massive update semantical LONG vs INT replacements
2013-12-19 05:07:37 -08:00
Anatol Belski
b1abe4ca21
mass replacement for zend_size_t/php_size_t
2013-12-18 14:46:44 -08:00
Anatol Belski
6b9396bd8e
Merge branch 'master' into str_size_and_int64
...
Conflicts:
ext/date/php_date.c
2013-12-01 12:31:48 +01:00
nikita2206
5f09944662
Fixed bug #65768 : DateTimeImmutable::diff does not work
...
This commit also prevents user classes from directly implementing
DateTimeInterface, because ext/date relies on classes implementing
it to support certain internal structures.
2013-11-29 23:31:07 +01:00
Anatol Belski
5ced3db971
Merge branch 'master' into str_size_and_int64
...
Conflicts:
Zend/zend.h
Zend/zend_hash.c
Zend/zend_hash.h
Zend/zend_language_parser.y
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
2013-11-28 17:27:59 +01:00
Derick Rethans
88067b6e60
Merge branch 'PHP-5.4' into PHP-5.5
...
Conflicts:
ext/date/php_date.c
2013-11-28 14:30:08 +00:00
Derick Rethans
5d0c526199
Move add/sub to timelib.
2013-11-28 12:02:36 +00:00
Derick Rethans
44a9e6b484
Fixed "Forward Transition" construction of DateTime objects.
...
This fixes the issue in
https://wiki.php.net/rfc/datetime_and_daylight_saving_time#forward_transitions
There is a period during transition to DST where a time (such as 02:30) does
not exist. PHP already calculated the correct timestamp for this, but failed to
"rounded forward" to the existing correct hour value.
2013-11-28 12:02:35 +00:00
Anatol Belski
3f7522a652
Merge branch 'master' into str_size_and_int64
2013-11-28 09:29:12 +01:00
Derick Rethans
4587ef569a
Merge branch 'PHP-5.4' into PHP-5.5
2013-11-27 22:01:03 +00:00
Derick Rethans
23ab2575e1
Fixed bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date)
2013-11-27 21:59:46 +00:00
Anatol Belski
6b229d541a
fixed ext/date for php_int_t usage
2013-11-13 15:22:56 +01:00
Anatol Belski
4fc7dc6eae
Merge branch 'master' into str_size_and_int64
...
* master: (79 commits)
ldap_escape() notes
Increment version number, since this will be 5.5.6.
Added Zend Debugger to the note about the load order (by trash4you at online dot de)
Added a LICENSE file to make it easier for PECL binary distributions to conform with the license.
Fix Coverity issue reporting wrong sizeof()
Fixed bug #65939 (Space before ";" breaks php.ini parsing). (brainstorm at nopcode dot org)
exif NEWS
add tests for bug #62523
Merged PR #293 (Exif crash on unknown encoding was fixed) By: Draal Conflicts: configure.in main/php_version.h
fix bug #65936 (dangling context pointer causes crash)
remove TRAVIS check in test source
Fixed compilation warning
Just SKIP that test on travis
Fixed issue #115 (path issue when using phar).
fix memory leak on error (from Coverity scan)
fix argument type & remove warning
fix const warnings in intl methods
Fix coverity issue with -1 returned by findOffset not being handled by getPreferredTag
fix possibility of access to *storedType without initialization
Fix coverity issue with -1 returned by findOffset not being handled by getPreferredTag
...
Conflicts:
Zend/zend_compile.c
ext/intl/collator/collator_create.c
ext/intl/locale/locale_methods.c
ext/intl/msgformat/msgformat_format.c
ext/intl/msgformat/msgformat_parse.c
2013-10-25 04:19:27 -07:00
Stanislav Malyshev
cb47396d46
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
fix memory leak on error (from Coverity scan)
2013-10-21 00:02:21 -07:00
Stanislav Malyshev
f860486de5
fix memory leak on error (from Coverity scan)
2013-10-21 00:01:24 -07:00
Anatol Belski
4b6d784962
Merge branch 'str_size_and_int64' of https://github.com/weltling/php-src into str_size_and_int64
...
Conflicts:
NEWS
UPGRADING
UPGRADING.INTERNALS
Zend/zend_API.c
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_constants.h
Zend/zend_exceptions.c
Zend/zend_exceptions.h
Zend/zend_execute.c
Zend/zend_language_scanner.c
Zend/zend_language_scanner.l
Zend/zend_operators.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/date/lib/parse_date.c
ext/date/php_date.c
ext/imap/config.m4
ext/oci8/config.m4
ext/oci8/oci8.c
ext/oci8/oci8_dtrace.d
ext/oci8/oci8_interface.c
ext/oci8/oci8_lob.c
ext/oci8/oci8_statement.c
ext/oci8/package.xml
ext/oci8/php_oci8.h
ext/reflection/php_reflection.c
ext/spl/spl_directory.c
ext/spl/spl_fixedarray.c
ext/standard/file.c
ext/standard/http_fopen_wrapper.c
ext/standard/info.c
ext/standard/string.c
main/php_variables.c
main/streams/streams.c
2013-10-16 06:02:27 -07:00
Anatol Belski
4f6e709a67
more fixes to ext/date
2013-10-16 03:10:50 -07:00
Anatol Belski
f8923bb076
replaced all the int params in the datetime
2013-10-16 03:09:52 -07:00
Anatol Belski
f6cf006496
the very first porting try, many things not worky
2013-10-16 02:37:11 -07:00
Anatol Belski
86c9a6f901
fix 's' vs 'S' for datetime
2013-10-16 02:31:20 -07:00
Anthony Ferrara
c224e239bd
Re-do a lot of it using a conditional define, and legacy type information for APIs
2013-10-16 01:55:06 -07:00
Remi Collet
a296e3d032
Fixed bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer
2013-10-16 01:23:54 -07:00
Remi Collet
3df4c3eb70
Fixed Bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer
2013-10-16 01:22:56 -07:00
Alexander Moskalev
66174837ef
Fix DateInterval->days value
...
when object was created not from DateTime::diff()
2013-10-16 01:11:20 -07:00
Boro Sitnikovski
165f544ae9
Fix bug #65502 : DateTimeImmutable::createFromFormat returns DateTime
...
DateTimeImmutable::createFromFormat should call
date_create_immutable_from_format instead of date_create_from_format
2013-09-12 15:21:45 +02:00
Boro Sitnikovski
d7f5f1ef35
Fix bug #65548 : Comparison for DateTimeImmutable doesn't work
2013-09-12 15:12:16 +02:00
Remi Collet
6fab1caa41
Fixed bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer
2013-08-30 10:45:33 +02:00
Remi Collet
a5749eb0cb
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fixed Bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer
2013-08-30 10:43:12 +02:00
Remi Collet
d69513afec
Fixed Bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer
2013-08-30 10:42:08 +02:00
Stanislav Malyshev
c0bfccafd2
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fix DateInterval->days value when object was created not from DateTime::diff()
2013-08-24 23:38:54 -07:00
Alexander Moskalev
b378b0b081
Fix DateInterval->days value when object was created not from DateTime::diff()
2013-08-24 23:38:33 -07:00
Anatol Belski
ebd2fc6b3f
more fixes to ext/date
2013-08-23 01:08:35 -07:00
Anatol Belski
0f892ce613
replaced all the int params in the datetime
2013-08-22 09:38:05 -07:00
Anatol Belski
261938b5e0
Merge branch 'string_size_refactor_take_2' into str_size_and_int64
...
Conflicts:
ext/standard/string.c
2013-08-22 09:13:46 -07:00
Anatol Belski
715b040f46
Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2
...
Conflicts:
Zend/zend_exceptions.c
ext/date/php_date.c
ext/standard/string.c
ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re
main/rfc1867.c
2013-08-16 01:45:50 -07:00
Christopher Jones
39612afc72
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
Conflicts:
ext/dba/libinifile/inifile.c
2013-08-14 20:43:25 -07:00
Christopher Jones
9ad97cd489
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
2013-08-14 20:36:50 -07:00
Anatol Belski
ccf2069c18
Merge branch 'string_size_refactor_take_2' into str_size_and_int64
...
Conflicts:
Zend/zend_constants.h
2013-08-13 01:10:09 -07:00
Anatol Belski
6478088a2c
Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2
...
Conflicts:
Zend/zend_operators.h
main/SAPI.h
main/rfc1867.c
main/streams/php_stream_transport.h
main/streams/streams.c
main/streams/transports.c
main/streams/xp_socket.c
2013-08-13 01:07:12 -07:00
Stanislav Malyshev
c793a65690
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
non living code related typo fixes
Conflicts:
Zend/zend_compile.c
2013-08-04 16:06:24 -07:00
Veres Lajos
8d86597d73
non living code related typo fixes
2013-08-04 16:05:36 -07:00
Anatol Belski
8b8f7d4a5a
the very first porting try, many things not worky
2013-07-17 09:48:13 -07:00
Anatol Belski
42c8f29277
fix 's' vs 'S' for datetime
2013-07-11 02:58:53 -07:00
Anatol Belski
59d95c1537
Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2
2013-07-10 01:09:28 -07:00
Anatol Belski
5324416b65
Fixed bug #65184 strftime() returns insufficient-length
...
string under multibyte locales
The msdn doc states 'strftime returns the number of characters', but prior
to VS2012 it seems to have returned the number of bytes. Locale independent.
The return is however \0-terminated, so strlen is just fine. The behaivor
seems to be persisting in the later VC++ versions as the corresponding
MSDN ticket is closed 'by design'.
See http://connect.microsoft.com/VisualStudio/feedback/details/766205/vs2012-strftime-has-incorrect-return-value-in-vc-11-with-multibyte-codepages#details
2013-07-03 11:12:46 +02:00