summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_setuid_variation4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/posix/tests/posix_setuid_variation4.phpt')
-rw-r--r--ext/posix/tests/posix_setuid_variation4.phpt5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_setuid_variation4.phpt b/ext/posix/tests/posix_setuid_variation4.phpt
index 288ac0d8f1..dbdc6ab7bf 100644
--- a/ext/posix/tests/posix_setuid_variation4.phpt
+++ b/ext/posix/tests/posix_setuid_variation4.phpt
@@ -2,6 +2,7 @@
Test function posix_setuid() by substituting argument 1 with float values.
--SKIPIF--
<?php
+ PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
@@ -36,6 +37,10 @@ foreach ( $variation_array as $var ) {
*** Test substituting argument 1 with float values ***
bool(false)
bool(false)
+
+Warning: posix_setuid() expects parameter 1 to be long, double given in %s on line %d
bool(false)
+
+Warning: posix_setuid() expects parameter 1 to be long, double given in %s on line %d
bool(false)
bool(false)