File: crashme.php

package info (click to toggle)
php-geos 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 2,612; php: 131; xml: 81; makefile: 23; sh: 12
file content (25 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

#
# This file contains code attempting to segfault the extension
#
# Run with:
# php -n -d enable_dl=On -d extension_dir=.. test.php
#

dl("geos.so");

class Point extends GEOSWKTReader {
    public function __construct()
    {
        parent::__construct();
    }
    public function test() {
        return GEOSGeometry::numGeometries();
    }
};

$p = new Point();
$p->test();