Commit Graph

34048 Commits

Author SHA1 Message Date
Andrei Zmievski
84a6481eff That is not the bug you're looking for. 2006-04-06 22:37:42 +00:00
Andrei Zmievski
a389cb5a8c Even more stuff from Friedl. 2006-04-06 22:02:02 +00:00
Andrei Zmievski
7272c63055 More stuff from Friedl.. 2006-04-06 21:23:56 +00:00
Andrei Zmievski
f37190dc57 MFB 2006-04-06 21:16:28 +00:00
Sara Golemon
5a9feaa6b1 Plug leak which occurs in unicode mode 2006-04-06 20:05:43 +00:00
Sara Golemon
b6f62cabff Silence false positives on test results 2006-04-06 20:03:27 +00:00
Sara Golemon
78d1f7ea40 Silence false positives in test failures 2006-04-06 19:51:36 +00:00
Sara Golemon
3b35b15961 Do runtime conversions (with an E_NOTICE) on writing unicode data to a binary stream. Take the WTF out of the equation 2006-04-06 19:39:11 +00:00
Antony Dovgal
48afd4ee03 MF51: fix #36981 (SplFileObject->fgets() ignores max_length) 2006-04-06 19:11:06 +00:00
Sara Golemon
5f5faedf18 Overload 'duplicate' arg as applied to:
add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
and
(ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?

#define ZSTR_DUPLICATE (1<<0)
#define ZSTR_AUTOFREE (1<<1)

Duplicate keeps traditional value of '1', additional bit '2' tells
unicode mode conversion to automatically free the original string
in order to avoid leaks due to conversion on a value otherwise being
"given" to the engine.

/* Uses s as-is for non-unicode, or frees s after converting to unicode */
{
  char *s = estrdup("Hello");
  ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE);
}

/* Duplicates for non-unicode, or converts (but doesn't free original) */
{
  char *s = "Hello";
  ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE);
}

/* Uses as-is for non-unicode, or converts (but doesn't free original) */
{
  char *s = "Hello";
  zval zv;
  ZVAL_RT_STRING(&zv, s, 0);

  /* use zv for some temporary purpose */

  /* It's now necessary to manually free this generated value */
  if (UG(unicode)) {
    zval_dtor(&zv);
  }
}
2006-04-06 18:02:39 +00:00
282807267d ChangeLog update 2006-04-06 05:31:50 +00:00
Antony Dovgal
96682ede22 workaround for problem on Solaris: shell tries to parse "for i in ;" and fails 2006-04-05 20:21:59 +00:00
Antony Dovgal
e931d970ab add new tests 2006-04-05 14:09:31 +00:00
Antony Dovgal
cd4730e6c7 add missing defines to .w32 2006-04-05 14:07:57 +00:00
Antony Dovgal
be7135bc8e fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's)
no support for Unicode CLOBs in Oracle < 10, sorry.
2006-04-05 14:07:16 +00:00
Antony Dovgal
4e85f445f0 add test 2006-04-05 12:29:35 +00:00
Antony Dovgal
3305bba32b MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length) 2006-04-05 11:36:28 +00:00
d81161af49 ChangeLog update 2006-04-05 05:31:46 +00:00
Ilia Alshanetsky
1df7d39695 Fixed bug #36957 (serialize() does not handle recursion). 2006-04-05 02:28:39 +00:00
Frank M. Kromann
476f0a2ae1 MFP51: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent connections 2006-04-04 18:49:44 +00:00
Seiji Masugata
e241504917 fixed commnet typo, and duplicate logic. 2006-04-04 15:14:28 +00:00
Derick Rethans
1bad8fea12 - No need to have this one twice here... (Thanks Steph) 2006-04-04 06:04:49 +00:00
203607da74 ChangeLog update 2006-04-04 05:31:44 +00:00
Marcus Boerger
f2004b6f28 - WS 2006-04-03 19:58:03 +00:00
Marcus Boerger
091360caa1 - Fix issue related to #36941 (when referencing itself) 2006-04-03 19:52:02 +00:00
Antony Dovgal
50b05cf884 add test for gmp_nextprime() 2006-04-03 18:11:56 +00:00
Antony Dovgal
c53b85fae5 add gmp_nextprime() function
patch by ants dot aasma at gmail dot com
2006-04-03 17:46:12 +00:00
Seiji Masugata
d8271224ad added mb_stristr( ), mb_strrichr( ). 2006-04-03 15:32:43 +00:00
Ilia Alshanetsky
a24cb8773f MFB51: Fixed an unlikely, but possible memory leak. 2006-04-03 13:46:35 +00:00
Antony Dovgal
0b0fff07b2 fix spelling in error messages:
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Sara Golemon
53450fae8a Update tests for working with unicode 2006-04-03 05:57:40 +00:00
7132eb60d5 ChangeLog update 2006-04-03 05:31:46 +00:00
Ilia Alshanetsky
ae08857016 Removed extra space in the Content-Type header for logos
Simplified stderr error reporting in apache sapi.
2006-04-02 17:58:07 +00:00
Sara Golemon
6d42d94715 Silence false positive test failures 2006-04-02 17:49:10 +00:00
Sara Golemon
37b1114556 Make some tests pass.
compression is just a binary thing.
Write unicode and suffer my wrath!
2006-04-02 17:41:04 +00:00
Marcus Boerger
8e97252506 - Behavior fix for #36941 2006-04-02 15:04:04 +00:00
Marcus Boerger
8e64e23044 - Fix warning 2006-04-02 12:48:37 +00:00
3adaaf3f49 ChangeLog update 2006-04-02 06:31:43 +00:00
Marcus Boerger
ac099ca676 - Bugfix #36941 (ArrayIterator does not clone itself) 2006-04-01 22:39:42 +00:00
Antony Dovgal
1160f87d1d MF51: fix segfault when assigning value by ref and add test 2006-04-01 19:14:01 +00:00
c3c95c61fb ChangeLog update 2006-04-01 06:31:49 +00:00
Sara Golemon
b2523b29b8 Update filename handling and mark various functions for unicode safety 2006-04-01 00:05:31 +00:00
Pierre Joye
ed35661f1e - move setSchema to the 2.6.20 block, this method is only available from
this version
2006-03-31 23:20:58 +00:00
Sara Golemon
fd606a8d78 Add API hooks and unicode.filesystem_encoding for handling unicode
conversions of filename entries.

Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
Marcus Boerger
e08784867c - Add XMLReader::setSchema 2006-03-31 20:50:29 +00:00
Antony Dovgal
ec376e510c MF51: fix compile failure with old GCC (see bug #36931) 2006-03-31 11:11:26 +00:00
8eb12d6116 ChangeLog update 2006-03-31 06:31:50 +00:00
Marcus Boerger
e365c4b7c4 - Fix build 2006-03-30 23:03:53 +00:00
Marcus Boerger
b7244fc2c0 - MFB Make readable 2006-03-30 22:03:02 +00:00
Marcus Boerger
2c8b47ca31 - Add another test 2006-03-30 21:45:27 +00:00