Closed dmvdbrugge closed 1 year ago
What you do: Create an Entry with invalid type, call its getText()
Entry
getText()
What do you expect: UI\Exception\InvalidArgumentException from constructor
UI\Exception\InvalidArgumentException
What happens: Segmentation fault, as shown below
dmvdbrugge@macbook:~/dynamic-components (master) $ php -a Interactive shell php > $e = new UI\Controls\Entry(); php > var_dump($e->getText()); string(0) "" php > $e = new UI\Controls\Entry(1); php > var_dump($e->getText()); string(0) "" php > $e = new UI\Controls\Entry(2); php > var_dump($e->getText()); string(0) "" php > $e = new UI\Controls\Entry(3); php > var_dump($e->getText()); string(0) "" php > $e = new UI\Controls\Entry(4); php > var_dump($e->getText()); Segmentation fault: 11 dmvdbrugge@macbook:~/dynamic-components (master) $ php -a Interactive shell php > $e = new UI\Controls\Entry(0); php > var_dump($e->getText()); Segmentation fault: 11
The exact same scenario holds for MultilineEntry as well as for example Box
MultilineEntry
Box
Closing to clean up my stuff and this repo is dead anyway.
What you do: Create an
Entry
with invalid type, call itsgetText()
What do you expect:
UI\Exception\InvalidArgumentException
from constructorWhat happens: Segmentation fault, as shown below