summaryrefslogtreecommitdiff
path: root/Zend/zend_smart_str_public.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-22 10:26:17 +0200
committerAnatol Belski <ab@php.net>2014-09-22 10:26:17 +0200
commit6bb530d1eba583143efda0b4f49e43cb6d6fb203 (patch)
tree75f5432eac05df91defaf2f530efd08eb4796605 /Zend/zend_smart_str_public.h
parent403709aaf46f2fe563df4d9f238528428287eb92 (diff)
parent065edced71c7f15f32fc2fb483a9048328b8108e (diff)
downloadphp-git-6bb530d1eba583143efda0b4f49e43cb6d6fb203.tar.gz
Merge remote-tracking branch 'origin/master' into native-tls
* origin/master: (24 commits) added a comment fix the REPARSE_DATA_BUFFER struct def simplify the condition Fix two memory errors by interning earlier Add smart_str_append for appending zend_strings Rename smart_str_append to smart_str_append_smart_str Use smart_str for exception stack traces Use smart_str in get_function_declaration Move smart_str implementation into Zend/ UPGRADING for Integer Semantics Fixed bug #66242 (don't assume char is signed) Fixed bug #67633 Fixed if/else if ordering Use SIZEOF_ZEND_LONG instead of SIZEOF_LONG Use zend_ polyfilled nan/finite, check finite Updated 32-bit << test Updated << 64-bit tests Prevent bit shift count wrapping quirkiness on some CPUs for left shift Cast NaN and Infinity to zero Updated >> 64-bit tests ...
Diffstat (limited to 'Zend/zend_smart_str_public.h')
-rw-r--r--Zend/zend_smart_str_public.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/zend_smart_str_public.h b/Zend/zend_smart_str_public.h
new file mode 100644
index 0000000000..23abe8e064
--- /dev/null
+++ b/Zend/zend_smart_str_public.h
@@ -0,0 +1,27 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP Version 7 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2014 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.01 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_01.txt |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Sascha Schumann <sascha@schumann.cx> |
+ +----------------------------------------------------------------------+
+ */
+
+#ifndef ZEND_SMART_STR_PUBLIC_H
+#define ZEND_SMART_STR_PUBLIC_H
+
+typedef struct {
+ zend_string *s;
+ size_t a;
+} smart_str;
+
+#endif