response message). (Jani)
- Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance mode).
(mike at php dot net)
+- Fixed bug #29944 (Function defined in switch, crashes). (Dmitry)
31 Mar 2005, Version 4.3.11
- Added Oracle Instant Client support. (cjbj at hotmail dot com, Tony)
--TEST--
-Bug #29944 (function defined in switch crashes PHP)
+Bug #29944 (Function defined in switch, crashes)
--FILE--
-<?PHP
+<?php
$a = 1;
-$b = "1";
switch ($a) {
- case 1:
- function foo($bar) {
- if (preg_match('/\d/', $bar)) return true;
- return false;
- }
- echo foo($b);
-}
+ case 1:
+ function foo($a) {
+ return "ok\n";
+ }
+ echo foo($a);
+}
?>
-
-===DONE===
--EXPECT--
-1
-===DONE===
+ok
+