diff options
author | Felipe Pena <felipe@php.net> | 2008-07-28 14:09:00 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-28 14:09:00 +0000 |
commit | de758769d3cf4d3f7d56cf1aae54a36d9af81461 (patch) | |
tree | 815fdbf130d45c6256843befc031c4e516817640 /Zend/tests/038.phpt | |
parent | 142b3d5c921e0caad5fb2af631eaf2e0a407a2d6 (diff) | |
download | php-git-de758769d3cf4d3f7d56cf1aae54a36d9af81461.tar.gz |
- New tests
Diffstat (limited to 'Zend/tests/038.phpt')
-rw-r--r-- | Zend/tests/038.phpt | 12 |
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) { +} |