bug76094.phpt 367 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Bug #76094 (Access violation when using opcache)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. --EXTENSIONS--
  8. opcache
  9. --FILE--
  10. <?php
  11. function MetaType($t)
  12. {
  13. switch (strtoupper($t)) {
  14. case PHP_INT_MAX :
  15. return 1;
  16. case 0:
  17. default:
  18. return 0;
  19. }
  20. }
  21. var_dump(MetaType("aa"));
  22. ?>
  23. --EXPECT--
  24. int(0)