summaryrefslogtreecommitdiff
path: root/Zend/tests/038.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-07-28 14:09:00 +0000
committerFelipe Pena <felipe@php.net>2008-07-28 14:09:00 +0000
commitde758769d3cf4d3f7d56cf1aae54a36d9af81461 (patch)
tree815fdbf130d45c6256843befc031c4e516817640 /Zend/tests/038.phpt
parent142b3d5c921e0caad5fb2af631eaf2e0a407a2d6 (diff)
downloadphp-git-de758769d3cf4d3f7d56cf1aae54a36d9af81461.tar.gz
- New tests
Diffstat (limited to 'Zend/tests/038.phpt')
-rw-r--r--Zend/tests/038.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/038.phpt b/Zend/tests/038.phpt
new file mode 100644
index 0000000000..963e73f9ea
--- /dev/null
+++ b/Zend/tests/038.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Trying to use lambda as array key
+--FILE--
+<?php
+
+var_dump(array(function() { } => 1));
+
+?>
+--EXPECTF--
+Warning: Illegal offset type in %s on line %d
+array(0) {
+}