Commit Graph

62 Commits

Author SHA1 Message Date
Dmitry Stogov
f970a1e5c3 Fixed bug #47851 (is_callable throws fatal error) 2009-04-02 09:56:53 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Felipe Pena
30f7bd1cb6 - MFB: New parameter parsing API
- Fixed tests
2008-08-19 02:51:28 +00:00
Felipe Pena
611ecc5111 - Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:40:45 +00:00
Felipe Pena
4a5536a033 - Fixed bug #44533 (floatval() issues E_NOTICE "non well formed numeric value")
(Keep the old behavior, as other related functions)
2008-03-29 22:02:20 +00:00
Marcus Boerger
6840a7815d - Fix flag handling (MFB) 2008-02-02 13:11:12 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Antony Dovgal
06e3561985 fix folding 2007-05-31 21:36:56 +00:00
Antony Dovgal
9c99b709a7 zend_make_printable_zval -> zend_make_string_zval 2007-05-17 17:29:09 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Sara Golemon
9b4bc8d489 Oi 2006-10-09 02:55:38 +00:00
Sara Golemon
3a40f32c6e Fix win32 (again), just temporarily convert the classname to ascii on this platform... 2006-10-08 18:00:44 +00:00
Sara Golemon
62f01f5e6c Win32 build gets confused by expansion of U_STRING_DECL macro with constants 2006-10-07 04:45:42 +00:00
Andrei Zmievski
92886ccdec Unicode support in is_callable(). 2006-10-06 20:11:25 +00:00
Sara Golemon
406f600d01 Make settype($var, 'string'); behave like $var = (string)$var;
e.g. switch between (binary) and (unicode) depending on UG(unicode)
2006-09-25 01:37:55 +00:00
Sara Golemon
7b082203e5 PHP6 Updates 2006-09-24 18:23:47 +00:00
Andrei Zmievski
25b95e4250 Make is_string() return TRUE for both Unicode and binary strings. 2006-03-17 23:00:20 +00:00
Derick Rethans
2ffc93140d - Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not
write the uppercased character to the buffer, but only returns the length of
  the uppercased letter as per
  http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50.
- Updated is_string():
  If Unicode semantics is turned on, return "true" for Unicode strings only.
  If Unicode semantics is turned off, return "true" for native strings only.
- Added is_binary() function that returns "true" for native strings only.
- Added first implementation of upgraded strtr function. It works except if
  combining sequences or surrogates are used in the non-array method of calling
  this function.
2006-03-17 14:29:05 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
0ac2b74b0b - Nuke php3 legacy 2005-12-05 22:53:34 +00:00
Dmitry Stogov
8f6f97a77d Unicode support 2005-08-23 12:53:31 +00:00
Dmitry Stogov
6b622046dc zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string). 2005-08-22 12:22:16 +00:00
Marcus Boerger
b3b53b6640 - ntive is better than standard (Andrei) 2005-08-13 21:18:47 +00:00
Marcus Boerger
ff1d752b81 - IS_STRING does not necessarily mean ascii so 'standard' is better
# Maybe we call them legacy strings
2005-08-13 10:19:31 +00:00
Marcus Boerger
acca0d32b0 Add is_unicode(), is_binary() and is_buffer() 2005-08-13 10:16:04 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Derick Rethans
4fb4cac65c - Add my new timelib and ext/date. For now only strtotime() makes use of this. 2005-06-14 21:32:29 +00:00
Stanislav Malyshev
47294288fe fix is_object() on non-php objects 2005-05-25 10:57:40 +00:00
foobar
b154e82d24 - Fixed bug #32719 (strval() fails to zero terminate strings) 2005-04-15 22:46:37 +00:00
Marcus Boerger
5a94bb642f - Do not touch return_valu's refcount or is_ref 2005-03-11 02:11:44 +00:00
Derick Rethans
88c17817a9 - Fixed bug #27822 (is_resource() returns TRUE for closed resources) 2004-04-01 08:54:44 +00:00
Marcus Boerger
15e1d817be Fix strval to use __toString if necessary 2004-03-14 22:59:04 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Marcus Boerger
149ad05b4f php_error_docref
#New conversion available at: http://docref.txt.marcus-boerger.de
2002-08-24 01:19:28 +00:00
Yasuo Ohgaki
7b3fb771e4 is_object() returns FALSE if object is a "incomplete object".
Raise E_NOTICE, instead of E_ERROR, for setting/getting properties
to/from a "incomplete object".
2002-07-24 09:55:11 +00:00
Andi Gutmans
b4146638f0 - Fix TSRMLS_* stuff 2002-07-08 18:29:54 +00:00
Derick Rethans
bd356fd0b9 Unify error messages 2002-07-08 11:52:57 +00:00
Derick Rethans
fca0231206 - Add warning to is_*() functions if more than one argument was passed 2002-07-08 11:50:01 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
jim winstead
e68095972e Move type-handling functions into ext/standard/type.c (which had
a few otherwise unused functions in it).
2002-01-09 23:47:46 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00