1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Commit Graph

4231 Commits

Author SHA1 Message Date
Anatol Belski 5ac84a5a47 fix datatype mismatch warns 2014-10-28 17:24:51 +01:00
Anatol Belski 99d12cf202 fix datatype mismatch 2014-10-28 17:24:50 +01:00
Stanislav Malyshev 6457c34ad8 Merge branch 'PHP-5.6'
* PHP-5.6:
  Fix bug #68095 - invalid read in php_getopt()
2014-10-27 19:10:43 -07:00
Stanislav Malyshev c5659cb8bd Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fix bug #68095 - invalid read in php_getopt()
2014-10-27 19:09:39 -07:00
Stanislav Malyshev deadeeae1d Fix bug #68095 - invalid read in php_getopt()
It's a hacky solution and incomplete, but I don't see other way
without refactoring the whole getopt protocol.
2014-10-27 19:06:44 -07:00
Anatol Belski 0f5858e3a3 fix datatype mismatch 2014-10-27 17:31:38 +01:00
Anatol Belski 9858df2f80 fix datatype mismatch warnings 2014-10-27 17:28:01 +01:00
Anatol Belski fa1e8f70f4 fix datatype mismatch 2014-10-27 17:20:24 +01:00
Anatol Belski 201f47e5db fix datatype mismatch 2014-10-27 17:16:24 +01:00
Anatol Belski deaeca4000 fix datatype mismatches 2014-10-27 17:15:26 +01:00
Anatol Belski 390182d8e6 fix datatype mismatch warning 2014-10-27 17:04:44 +01:00
Anatol Belski 868dbf609b fix datatype mismatches 2014-10-27 17:02:52 +01:00
Anatol Belski 52bd403d0b fix datatype mismatches 2014-10-27 16:38:53 +01:00
Anatol Belski 37634c9a67 fix datatype mismatch 2014-10-27 16:38:52 +01:00
Anatol Belski d8ed655351 fix datatype mismatch warns 2014-10-27 16:38:51 +01:00
Anatol Belski 05f812c8d3 catch up with zend_html_puts 2014-10-27 16:38:49 +01:00
Anatol Belski e99040659e fix datatype mismatches and warns 2014-10-27 16:38:48 +01:00
Anatol Belski 11b119d526 fix datatype mismatches 2014-10-27 16:38:47 +01:00
Anatol Belski 82c36cf5e8 fix datatype mismatches 2014-10-27 16:38:46 +01:00
Anatol Belski 73ecac89e1 fix datatype mismatches and warnings 2014-10-27 16:38:45 +01:00
Anatol Belski b983929652 fix datatype mismatch warnings 2014-10-27 16:38:44 +01:00
Anatol Belski ae06555003 fix datatype mismatch warnings 2014-10-27 16:38:42 +01:00
Anatol Belski b0d86d87d8 fix datatype mismatches 2014-10-27 16:38:40 +01:00
Anatol Belski ff02a1416e fix datatype mismatches 2014-10-24 20:50:01 +02:00
Anatol Belski 74997dcf7e add include for usleep() proto 2014-10-23 16:49:47 +02:00
Anatol Belski d0151cfe00 Merge branch 'PHP-5.6'
* PHP-5.6:
  export functions needed for phpdbg

Conflicts:
	main/snprintf.c
	main/snprintf.h
2014-10-18 22:57:44 +02:00
Anatol Belski 3af83e196c export functions needed for phpdbg 2014-10-18 22:55:14 +02:00
Ferenc Kovacs d2ab6e1d15 Merge branch 'PHP-5.6'
* PHP-5.6:
  removing the NEWS entry as we had to revert this fix for now
  Revert "Merge branch 'PHP-5.5' into PHP-5.6"
  Revert "fix TS build"
  Revert "Merge branch 'PHP-5.4' into PHP-5.5"
  Revert "Bug #67965: Fix blocking behavior in non-blocking crypto streams"
  Revert "Bug #41631: Fix regression from first attempt (6569db8)"
2014-10-15 19:41:27 +02:00
Ferenc Kovacs 7b8222aa44 Revert "Merge branch 'PHP-5.4' into PHP-5.5"
This reverts commit 30a73658c6, reversing
changes made to 7fac56e072.
2014-10-15 19:33:31 +02:00
Ferenc Kovacs 646b4cca85 PHP-5.6.3 is next 2014-10-15 14:08:32 +02:00
Anatol Belski 6445c4bd48 use php_socket_t instead of int 2014-10-10 19:00:19 +02:00
Anatol Belski 5d7ccb758b bring back the correct php_version.h 2014-10-06 15:51:57 +02:00
Tjerk Meesters 82523c0752 Merge branch 'pr/647'
* pr/647: (33 commits)
  zend_uint -> uint32_t
  Fix nesting for *non*-compile-time-resolveable functions See https://github.com/thekid/php-src/commit/a1a4ba95117cca77b6a669d01b1cf97ea4fcb507#commitcomment-7414223
  Add tests for calls to nested, *non*-compile-time-resolveable functions See https://github.com/thekid/php-src/commit/a1a4ba95117cca77b6a669d01b1cf97ea4fcb507#commitcomment-7414362
  Make list of opcodes used for nesting calculation consistent   with `zend_do_convert_call_user_func()` in Zend/zend_compile.c
  Rewrite code to use ZEND_VM_JMP() instead of repeated ZEND_VM_INC_OPCODE() calls
  QA: Simplify code to find matching ZEND_DO_FCALL_BY_NAME CG(context).nested_calls is stored inside the initializer's result.num and inside the finalizer's op2.num, by comparing these we don't need to count manually, and are thus safer from future expansion with specialized opcodes e.g.
  Fix expected fatal error, now is catchable fatal
  Adjust expected fatal error message Now also includes "on [TYPE]" after merge from master
  Check for memory leaks when not using return value
  Adjust expected fatal error message Now also includes "on [TYPE]" after merge from master
  Add tests with arrays as parameters
  Handle ZEND_NEW nesting
  Also verify nesting with dynamically called static methods
  Handle ZEND_INIT_NS_FCALL_BY_NAME nesting
  QA: Refactor: Split tests a bit to make them more comprehendable
  Support nested static calls
  Handle ZEND_EXT_FCALL_END, skipping if necessary Verified with running tests with new "-e" run-tests arg: $ make test TESTS=Zend/tests/*-on-non-objects-*phpt TEST_PHP_ARGS=-e # Tests passed    :   11 (100.0%)
  Add support for PHP's 'extended information for debugger/profiler' mode
  Verify non-CV-operands also work See discussion https://github.com/php/php-src/pull/647#issuecomment-48050551
  Only allocate NULL return value if it's actually used
  ...

Conflicts:
	ext/date/tests/bug67118.phpt
2014-10-06 05:52:43 +08:00
Nikita Popov e756333bbb Remove <% and <script language="php"> tags
As per https://wiki.php.net/rfc/remove_alternative_php_tags.

Removes:
 * <% opening tag
 * %> closing tag
 * <%= short opening tag
 * /<script\s+language\s*=\s*(php|"php"|'php')\s*>/i opening tag
 * /</script>/i closing tag
 * asp_tags ini directive
2014-10-05 21:57:05 +02:00
Julien Pauli cfe8a8b968 5.5.19 now 2014-10-01 16:16:05 +02:00
Anatol Belski b428dc761d Merge branch 'PHP-5.6'
* PHP-5.6:
  increase the polling period to not to break existing behaviours
2014-09-29 17:29:00 +02:00
Anatol Belski 231a311ecb Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  increase the polling period to not to break existing behaviours
2014-09-29 17:28:27 +02:00
Anatol Belski 46aa2c396b increase the polling period to not to break existing behaviours 2014-09-29 17:27:24 +02:00
Anatol Belski 78e23758b7 Merge branch 'PHP-5.6'
* PHP-5.6:
  updated NEWS
  Fixed bug #51800 proc_open on Windows hangs forever

Conflicts:
	main/streams/plain_wrapper.c
2014-09-29 16:30:40 +02:00
Anatol Belski 87a37f4090 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fixed bug #51800 proc_open on Windows hangs forever
2014-09-29 16:27:33 +02:00
Anatol Belski 0c982798e0 Fixed bug #51800 proc_open on Windows hangs forever
This loop can block for some minutes, theoretically. Practially
however, this is a 99% non issue for a normal use case. This is
required because read() is synchronous. The PHP streams API wants
to fill its internal buffers, therefore it might try to read some
more data than user has demanded. Also, for a case where we want
to read X bytes, but neither enough data nor EOF arrives, read()
will block until it could fill the buffer. If a counterpart station
runs slowly or delivers not all the data at once, read() would
still be waiting. If we quit too early, we possibly could loose
some data from the pipe. Thus it has to emulate the read()
behaviour, but obviously not completely, just to some grade.

Reading big data amount is for sure an issue on any platforms, it
depends on the pipe buffer size, which is controlled by the system.
On Windows, the buffer size seems to be way too small, which causes
buffer congestion and a dead lock. It is essential to read the pipe
descriptors simultaneously and possibly in the same order as the
opposite writes them.

Thus, this will work with smaller buffer data sizes passed through
pipes. As MSDN states, anonymous pipes don't support asynchronous
operations. Neither anonymous pipes do support select() as they are
not SOCKETs but file descriptors. Consequently - bigger data sizes
will need a better solution based on threads. However it is much
more expencive. Maybe a better solution could be exporting a part
of the internal doing as a userspace function which could perform
some kind of lookahead operation on the pipe descriptor.

This is just the first stone, depending on the user feedback we
might go for further improvements in this area.
2014-09-29 16:24:34 +02:00
Timm Friebe 0a9e207a77 zend_uint -> uint32_t 2014-09-25 21:42:19 +02:00
Nikita Popov e33f3d3b7c Move smart_str implementation into Zend/
So we can use it there as well...

For now I've retained the zend_smart_str_public.h header, though
it would probably be better to just move that one struct into
zend_types.h.
2014-09-21 20:49:39 +02:00
Johannes Schlüter d0cb715373 s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
Anatol Belski d4c5271c0c reverted too much 2014-09-19 16:30:06 +02:00
Anatol Belski d1131d4278 reverted some previous IS_ABSOLUTE_PATH related changes
It's fine with strlen usage now, only one call
2014-09-19 16:30:05 +02:00
Anatol Belski c80d9ccf7a fix printf format 2014-09-19 10:04:12 +02:00
Nikita Popov 8a9dd4a1d7 Fix GMP serialization
Also fix same issue in PDO.
2014-09-18 23:03:27 +02:00
Anatol Belski dc37e089e3 fix signed/unsigned mismatch 2014-09-15 19:46:31 +02:00
Kalle Sommer Nielsen ed55d52fa7 optimize path length retrieval 2014-09-15 10:43:38 +02:00