1--TEST--
2DOMCharacterData::deleteData() with offset exceeding string size.
3--CREDITS--
4Eric Lee Stewart <ericleestewart@gmail.com>
5# TestFest Atlanta 2009-05-24
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10$document = new DOMDocument;
11$root = $document->createElement('root');
12$document->appendChild($root);
13
14$cdata = $document->createCDATASection('test');
15$root->appendChild($cdata);
16$cdata->deleteData(5, 1);
17?>
18--EXPECTF--
19Fatal error: Uncaught exception 'DOMException' with message 'Index Size Error' in %s:%d
20Stack trace:
21#0 %s(%d): DOMCharacterData->deleteData(5, 1)
22#1 {main}
23  thrown in %s on line %d