Commit Graph

4205 Commits

Author SHA1 Message Date
Andrey Hristov
1236cfa38a - type is either 1 or 2 if second parameter is set. if not set then type
is 0.
- use the lvalue for the second rvalue
2005-03-12 13:08:19 +00:00
Andrey Hristov
cc39b51d2d add a test file 2005-03-12 12:59:53 +00:00
Andrey Hristov
070147105f Fixed #30871 2005-03-12 10:11:46 +00:00
Marcus Boerger
5a94bb642f - Do not touch return_valu's refcount or is_ref 2005-03-11 02:11:44 +00:00
Marcus Boerger
4e390892b7 - Do not touch return_valu's refcount or is_ref 2005-03-11 01:52:24 +00:00
Marcus Boerger
1d85c3fe80 - Times have changed - php 5 relevant version now 2005-03-11 00:22:28 +00:00
Marcus Boerger
faae6ac159 - Do not touch return_valu's refcount or is_ref 2005-03-11 00:14:02 +00:00
Marcus Boerger
04a08c757a - Allow to work under php 5 2005-03-11 00:11:35 +00:00
Marcus Boerger
df56c39bda - Cosmetics 2005-03-10 23:52:43 +00:00
Marcus Boerger
4172ec995c - Do not touch return_valu's refcount or is_ref 2005-03-10 23:42:15 +00:00
Zeev Suraski
b31c44d0fd Oops, revert. 2005-03-10 14:33:53 +00:00
Zeev Suraski
1b5d558f91 Fix prototype 2005-03-10 14:32:16 +00:00
Joe Orton
3796738681 Fix /*-within-comment warning from GCC. 2005-03-10 11:19:32 +00:00
Marcus Boerger
bd13b72164 - Wrong order of action - touch 2005-03-10 00:17:17 +00:00
Marcus Boerger
22fcd1aac7 - Fix #31442 unserialize broken on 64-bit systems
- Fix one warning
2005-03-10 00:10:21 +00:00
Marcus Boerger
34c432de7e - Fix #31442 unserialize broken on 64-bit systems
- Fix one warning
2005-03-09 23:58:44 +00:00
Derick Rethans
16d67ab9f5 - MF43: Fixed bug #28067 (partially incorrect utf8 to htmlentities mapping). 2005-03-09 10:13:05 +00:00
Ilia Alshanetsky
0dbe348d1d Improve the performance of htmlspecialchars_decode() by 20-30%. 2005-03-08 21:13:03 +00:00
foobar
7c1d94a702 update 2005-03-08 06:40:05 +00:00
Marcus Boerger
9c08e3ccae - Update signature 2005-03-07 22:27:29 +00:00
Marcus Boerger
6bd8257607 - Fix proto
- Do not try to write zero bytes
2005-03-07 22:10:08 +00:00
Marcus Boerger
cf6711abfa - Length needs to be positive 2005-03-07 21:54:08 +00:00
Marcus Boerger
97655f8a3b - Make maic qutes runtime work if length is specified too 2005-03-07 21:52:34 +00:00
Marcus Boerger
85ebbd28a0 - Delay memory allocation, speeds up faiure case 2005-03-07 21:28:38 +00:00
Ilia Alshanetsky
975ff6f5d5 Added htmlspecialchars_decode() function for fast conversion from
htmlspecialchars() generated entities back to characters.
2005-03-07 19:37:27 +00:00
Ilia Alshanetsky
0c9610fc9d Fixed bug #32210 (proc_get_status() sets "running" always to true). 2005-03-07 16:17:12 +00:00
Marcus Boerger
7fbc91acce - Allow length 0 as default (e.g. skip param) 2005-03-07 00:16:18 +00:00
Marcus Boerger
ef64180c90 - Actuall the comments were correct 2005-03-06 22:18:09 +00:00
Ilia Alshanetsky
96d7eebce8 Make html_entity_decode() 15-20% faster by avoiding pointless string
duplication.
2005-03-06 19:36:51 +00:00
Ilia Alshanetsky
c8687cdb79 Fixed bug #29424 (width and height inverted for JPEG2000 files). 2005-03-06 17:03:43 +00:00
Andrei Zmievski
f8fc9a3256 Check that object can actually return a class entry. I need this for a
class-entry-less helper objects that should not be present in the class
table.
2005-03-05 00:45:47 +00:00
Ilia Alshanetsky
09a8f38e39 Fixed bug #32160 (file truncation in copy() when source & destination are
the same).
2005-03-03 03:29:23 +00:00
Ilia Alshanetsky
71b9b512cc Fixed bug #31792 (getrusage() does not provide ru_nswap value). 2005-03-01 21:32:25 +00:00
Anantha Kesari H Y
033a45903c NetWare allows directory seperator as \ and / 2005-03-01 14:59:37 +00:00
Stefan Esser
14abc19a76 Handle last or broken JP2 boxes correctly. 2005-03-01 13:53:02 +00:00
Marcus Boerger
67fd1f2654 - MFB 2005-03-01 10:14:18 +00:00
foobar
c61608ef35 update 2005-03-01 09:26:28 +00:00
Stefan Esser
e2f1b375a2 This way around for correct error messages 2005-02-28 16:32:49 +00:00
Stefan Esser
b7476a5bd6 Drop invalid arrays 2005-02-28 16:22:39 +00:00
Ilia Alshanetsky
0367674517 Fixed compiler warnings. 2005-02-27 17:08:18 +00:00
Stanislav Malyshev
634a5ec6f8 fix typo 2005-02-27 11:30:41 +00:00
Sara Golemon
00c6078ff1 Enum filters in phpinfo() 2005-02-27 08:12:12 +00:00
Marcus Boerger
89d75d5c9c - Little speed up 2005-02-24 20:22:40 +00:00
Marcus Boerger
72dc2d1025 - This must be == 1 2005-02-24 20:22:18 +00:00
foobar
129a8a7607 - Generated with re2c 0.9.4 2005-02-24 17:50:20 +00:00
Stanislav Malyshev
8919a7ae08 fix typo 2005-02-24 10:58:16 +00:00
Marcus Boerger
30f870f957 - Prevent superflous memory allocation 2005-02-24 00:12:15 +00:00
Ilia Alshanetsky
fac3e54ad9 Additional safety checks.
# More to follow
2005-02-23 23:39:36 +00:00
Marcus Boerger
3f5e714d7b - Slightly redesign
# More to follow, explanation follows at more public place
2005-02-23 22:49:32 +00:00
Ilia Alshanetsky
bd0d48f7a5 Fixed compiler warning. 2005-02-23 18:53:09 +00:00
Stefan Esser
0ef1f50383 Correcting bounds check before someone uses this code 2005-02-23 18:26:39 +00:00
Stanislav Malyshev
db3fdce304 Custom object serializer infrastructure - PHP implementation
# The detailed announce on the list will follow
2005-02-23 11:17:52 +00:00
Ilia Alshanetsky
c7b931d80d Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so). 2005-02-22 00:24:13 +00:00
Anantha Kesari H Y
459313c26d In NetWare LibC WTERMSIG is avaliable as WIFTERMSIG 2005-02-21 09:50:48 +00:00
Anantha Kesari H Y
bf427d4a0d NetWare LibC has pwd.h. Removed unwanted extern basic_globals_id declaration for Netware. 2005-02-21 09:44:58 +00:00
Anantha Kesari H Y
3e204f3e07 NetWare has pwd.h and removed unwanted check on NEW_LIBC while including param.h 2005-02-21 09:17:30 +00:00
Anantha Kesari H Y
8bd83a53ac NetWare LibC has pwd.h 2005-02-21 09:12:44 +00:00
Anantha Kesari H Y
f43386764f In NetWare statfs f_bavail member is known as f_bfree 2005-02-21 09:08:54 +00:00
Derick Rethans
ff1687731d - Fixed bug #32021: Crash caused by range('', 'z') 2005-02-18 13:37:23 +00:00
Anantha Kesari H Y
5f243d7af7 NetWare LibC has pwd.h 2005-02-17 13:57:21 +00:00
Anantha Kesari H Y
67a2998335 NetWare libc has pwd.h 2005-02-17 13:56:49 +00:00
Wez Furlong
9296eb0fd2 George too 2005-02-17 04:50:49 +00:00
Wez Furlong
ede312933c ran ./scripts/dev/credits to update credits to reflect recent removals and
additions.
2005-02-17 04:49:52 +00:00
Marcus Boerger
3ab88a4718 - Disallow illegal class names (.c part) 2005-02-14 21:03:09 +00:00
Marcus Boerger
ff8055fc5c - Disallow illegal class names 2005-02-14 20:58:22 +00:00
Ilia Alshanetsky
cd0435b15a Fixed test. 2005-02-13 19:23:53 +00:00
Rob Richards
bb9ba8e36e fix segfault when retval_ptr is empty - such as when exception thrown 2005-02-10 22:59:26 +00:00
Pierre Joye
162b91136c - fix #30745 and #31853 (php-bugs at demark dot org, pierre) 2005-02-10 14:31:32 +00:00
Ilia Alshanetsky
55fd7ac601 Added optional maxlen parameter to file_get_contents(). 2005-02-08 15:25:45 +00:00
Wez Furlong
1069cefada support sucking data from streams in file_put_contents() 2005-02-06 23:05:24 +00:00
Ilia Alshanetsky
917648a232 Fixed possible un-initialized var on error. 2005-02-06 22:58:46 +00:00
foobar
71b9c41a6b fix test 2005-02-04 23:23:34 +00:00
foobar
b61a63d008 - Fixed bug #31842 (*date('r') does not return RFC2822 conforming date string). 2005-02-04 13:08:56 +00:00
Stanislav Malyshev
7b241027fa fix memory leak if function call fails 2005-02-02 10:37:50 +00:00
Ilia Alshanetsky
112eb3b35d Fix handling of INF/NAN in unserialize(). 2005-01-30 16:38:53 +00:00
Antony Dovgal
999c63d9d7 improve CS & error messages 2005-01-28 16:42:26 +00:00
Antony Dovgal
c61ce71a01 MFB: explain why ftok() failed 2005-01-28 16:36:46 +00:00
Ilia Alshanetsky
42155f6028 Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar) 2005-01-27 16:37:34 +00:00
Ilia Alshanetsky
4a5294788e Fixed bug #31699 (unserialize() float problem on non-English locales). 2005-01-26 16:55:17 +00:00
Ilia Alshanetsky
c85a9abc4c Fixed bug #29733 (printf() handles repeated placeholders wrong).
# Original patch by bugs dot php dot net at bluetwanger dot de
2005-01-26 00:01:26 +00:00
Andrei Zmievski
9ab8deb33c Don't depend on empty_string. 2005-01-25 23:58:22 +00:00
Ilia Alshanetsky
8c22d51070 Fixed bug #31465 (False warning in unpack() when working with *). 2005-01-25 22:50:39 +00:00
Andrei Zmievski
27b1a27faf MFB (Fix several egregious leaks in ext/browscap and sapi/embed). 2005-01-25 21:33:58 +00:00
Ilia Alshanetsky
1e6454a67b Fixed bug #31479 (Fixed crash in chunk_split(), when chunklen > strlen). 2005-01-18 15:47:57 +00:00
foobar
197711bb7d Add test for bug #31402 2005-01-18 11:36:44 +00:00
foobar
bed68d8828 Touch the generated file. 2005-01-18 10:57:05 +00:00
Dmitry Stogov
ea6ea21939 Fixed bug #31190 (exceptions in call_user_func_array()) 2005-01-18 10:38:04 +00:00
Stefan Esser
da7001a6c3 Fix compiler warning. 2005-01-17 11:45:09 +00:00
Stefan Esser
135fee7f10 and use it... 2005-01-15 18:30:16 +00:00
Stefan Esser
2c25b9d866 Restore unserialize() speed 2005-01-15 18:18:08 +00:00
foobar
58c6ed3583 CS fix 2005-01-15 04:50:26 +00:00
Dmitry Stogov
9de934c210 Fixed SIGSEGV in ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt 2005-01-14 09:02:02 +00:00
Moriyoshi Koizumi
20a5a1d61c - Fix the fix :) 2005-01-11 20:58:46 +00:00
Moriyoshi Koizumi
ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
foobar
32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
foobar
71ea389f74 Missing $Id$ tag 2005-01-10 15:20:53 +00:00
foobar
2b407ef934 - Update credits 2005-01-10 15:11:17 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
foobar
6ffb0dcaf2 - Fix leaks with registered shutdown functions. 2005-01-09 16:30:09 +00:00
foobar
4db9db0cc7 - Fix possible crash (PR#26223). Leaks remain. 2005-01-08 20:44:23 +00:00
Marcus Boerger
5516915115 - Add new test 2005-01-08 13:47:05 +00:00
Marcus Boerger
344d2210c2 - Unify 2005-01-08 13:46:18 +00:00
Antony Dovgal
5eeb444b8b remove duplicated include 2005-01-07 20:55:46 +00:00
Wez Furlong
c4bc5b7f33 Fix #31408: memory leak in stream_socket_recvfrom 2005-01-04 15:30:45 +00:00
Moriyoshi Koizumi
88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
Ilia Alshanetsky
585833ab7e Fixed proto. 2004-12-30 01:23:44 +00:00
Zeev Suraski
f64c4f4569 MFB - description fix 2004-12-27 18:22:50 +00:00
Wez Furlong
843807c647 When a socket is non-blocking, don't block ssl enabled sockets.
Allow for non-blocking negotiation when calling stream_socket_enable_crypto().
That function will return the foolowing values:

false - negotiation failed
0     - try again when more data is available (only for non-blocking sockets)
true  - ssl was enabled
2004-12-25 02:02:56 +00:00
Wez Furlong
e1f3beaa13 really don't blow up 2004-12-23 19:39:22 +00:00
Antony Dovgal
38d8e20f68 destroy return_value and fix leak in array_fill() 2004-12-23 16:35:48 +00:00
Wez Furlong
d3d757d95a don't crash... 2004-12-23 05:56:50 +00:00
Magnus M��tt�
774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
Derick Rethans
13c2cbb515 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Ilia Alshanetsky
77c0395968 Fixed bug #31087 (broken php_url_encode_hash macro). 2004-12-16 22:39:39 +00:00
Antony Dovgal
33c24b5436 fix leak (init array only if we got valid start key) 2004-12-16 19:13:58 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Ilia Alshanetsky
cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Ilia Alshanetsky
6d7cac7731 Fixed bug #28228 (NULL decimal separator is not being handled correctly). 2004-12-14 00:37:19 +00:00
Wez Furlong
419bbffeef Make it really build... 2004-12-13 13:52:01 +00:00
Wez Furlong
d213b67cdf Add missing constants for socketpair().
I thought I had included these...
Good catch Nuno :)
2004-12-12 23:21:53 +00:00
Wez Furlong
d10b86f8f4 Add stream_socket_pair(), a streams based version of socketpair().
Modified patch from Vincent [six at t0x dot net]
2004-12-12 16:10:35 +00:00
Ilia Alshanetsky
c96a1e0ddf Fixed bug #31056 (php_std_date() returns invalid formatted date if
y2k_compliance is On).

# will MFH to 5.0.X and 4.3.X after release
2004-12-12 15:50:06 +00:00
Antony Dovgal
01b996b98b fix buffer overrun & segfault in get_meta_tags() when there is no tag value 2004-12-10 10:30:01 +00:00
Ilia Alshanetsky
6883a3f09c Fixed bug #30990 (allow popen() on *NIX to accept 'b' flag). 2004-12-06 23:30:37 +00:00
Antony Dovgal
b6b8bf0010 fix array_walk_recursive() so it doesn't reuse cached fci between calls
and add test for it
2004-12-03 17:43:23 +00:00
Stefan Esser
9a18fb197d Handle already existing elements correctly 2004-12-03 16:02:48 +00:00
Antony Dovgal
ccc6462cc5 revert my previous patch as it breaks more than fixes 2004-12-02 16:35:02 +00:00
Stefan Esser
1094a0d243 Beware of negative indices 2004-12-01 22:42:00 +00:00
Derick Rethans
b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
Antony Dovgal
dbc0bb7514 fix #29954 (array_reduce segfaults when initial value is array) 2004-11-28 17:03:45 +00:00
Stefan Esser
6d98fc38b5 Fixed: removed possible integer over-/underflows 2004-11-28 12:44:28 +00:00
Dmitry Stogov
5ece0ecdfb Test was fixed. 2004-11-23 17:21:33 +00:00
Derick Rethans
a6ded1178e - Added test for bug #28599 2004-11-23 09:40:07 +00:00
Antony Dovgal
39b25e4f3d fix yet another typo 2004-11-21 13:35:32 +00:00
Antony Dovgal
d9dd604ae7 fix typo (bug #30857) 2004-11-21 13:33:20 +00:00
Antony Dovgal
2a588879ef fix bug #30587 (array_multisort doesn't separate zvals before changing them) 2004-11-19 16:55:37 +00:00
Frank M. Kromann
11363296be Avoid renaming of sprintf to php_sprintf 2004-11-15 21:13:25 +00:00
Derick Rethans
d79407f4fd - MF5.0: Fixed bug #28599 (strtotime fails with zero base time). 2004-11-15 16:31:12 +00:00
Derick Rethans
61364b5bb1 - MFH4.3: Cleaned up some of the locale mess:
* all internal use of sprintf, snprintf and the like will always
    use the . as thousands seperator (if php.h is included only!).
  * echo, printf() and sprintf() always render locale-aware
  * added the %F modifier for non-locale aware rendering for floats
2004-11-15 13:42:22 +00:00
Antony Dovgal
d33eb14569 fix #30751 (phpinfo() shows the same ini path after reconfigure with --with-config-file-path) 2004-11-11 06:57:06 +00:00
Wez Furlong
be4778b87e Fix leaking handle.
Thanks to ilya77 at gmail dot com
2004-11-10 19:47:15 +00:00
Joe Orton
0f858fc744 Make the "rounding fuzz" check work again with gcc 3.3 and later,
fixing the bug24142 test.
2004-11-09 15:58:16 +00:00
Derick Rethans
59651c4e58 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
2004-11-03 23:36:51 +00:00
Ilia Alshanetsky
9a9815a123 emalloc() failures are handled by zend engine. 2004-11-03 22:17:45 +00:00
Antony Dovgal
b5c1040240 fix build 2004-11-03 06:22:08 +00:00
Andrey Hristov
494d665955 make sleep() return it's return value when possible
#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM
#interrupts sleep() it returns the number of seconds that has to be slept
#till the number of seconds wanted by the script. Sleep() on Windows is
# void.
2004-11-02 17:03:20 +00:00
Ilia Alshanetsky
5f9d72c431 Fixed open_basedir & safe_mode bypass inside readlink() function. 2004-11-02 00:37:32 +00:00
Marcus Boerger
c18e248e60 - Remove doubled definition 2004-11-01 22:28:59 +00:00