summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2012-09-17 17:11:03 -0700
committerChristopher Jones <sixd@php.net>2012-09-17 17:11:03 -0700
commitd90a7f15001528cd149b4f119269905da2486684 (patch)
treeaf06c1e94541959b5883564d603f9c839fce2008
parente1419001bd1d60de07b8b31d7e7dfcfc67fceafd (diff)
parent44e3a9be7edb8ec3b8d8f6aec3fa7ea3b9abb047 (diff)
downloadphp-git-d90a7f15001528cd149b4f119269905da2486684.tar.gz
Merge branch 'master' of https://git.php.net/repository/php-src
* 'master' of https://git.php.net/repository/php-src: update news Support building PHP with the native client toolchain. test should fail
-rw-r--r--Zend/zend_alloc.c6
-rw-r--r--ext/date/tests/bug62852.phpt3
2 files changed, 6 insertions, 3 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index a29350d7bf..155ae88b6b 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -664,7 +664,7 @@ static void *_zend_mm_realloc_int(zend_mm_heap *heap, void *p, size_t size ZEND_
static inline unsigned int zend_mm_high_bit(size_t _size)
{
-#if defined(__GNUC__) && defined(i386)
+#if defined(__GNUC__) && (defined(__native_client__) || defined(i386))
unsigned int n;
__asm__("bsrl %1,%0\n\t" : "=r" (n) : "rm" (_size));
@@ -690,7 +690,7 @@ static inline unsigned int zend_mm_high_bit(size_t _size)
static inline unsigned int zend_mm_low_bit(size_t _size)
{
-#if defined(__GNUC__) && defined(i386)
+#if defined(__GNUC__) && (defined(__native_client__) || defined(i386))
unsigned int n;
__asm__("bsfl %1,%0\n\t" : "=r" (n) : "rm" (_size));
@@ -2454,7 +2454,7 @@ ZEND_API size_t _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_
return _zend_mm_block_size(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
}
-#if defined(__GNUC__) && defined(i386)
+#if defined(__GNUC__) && (defined(__native_client__) || defined(i386))
static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
{
diff --git a/ext/date/tests/bug62852.phpt b/ext/date/tests/bug62852.phpt
index 2c23138035..26de510215 100644
--- a/ext/date/tests/bug62852.phpt
+++ b/ext/date/tests/bug62852.phpt
@@ -29,5 +29,8 @@ try {
unserialize( $s2 );
} catch ( Exception $e ) {}
var_dump( $foo );
+
+echo "okey";
?>
--EXPECTF--
+okey