-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpackage_mysqli.php
56 lines (47 loc) · 1.8 KB
/
package_mysqli.php
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$version = '1.5.0b4';
$state = 'beta';
$notes = <<<EOT
- fixed bug #17892: removed debug message [pdt256]
- fixed bug #17984: Error is not reported when mysqli_stmt_bind_param() fails [dennylin93]
- fixed bug #18057: Result of getDeclaration() can have invalid syntax [hschletz]
- request #18068: mapNativeDatatype() returns decimal places also for 'float' mdb2type
open todo items:
- use a trigger to emulate setting default now()
EOT;
$description = 'This is the MySQLi MDB2 driver.';
$packagefile = './package_mysqli.xml';
$options = array(
'filelistgenerator' => 'cvs',
'changelogoldtonew' => false,
'simpleoutput' => true,
'baseinstalldir' => '/',
'packagedirectory' => './',
'packagefile' => $packagefile,
'clearcontents' => false,
'include' => array('*mysqli*'),
'ignore' => array('package_mysqli.php'),
);
$package = &PEAR_PackageFileManager2::importOptions($packagefile, $options);
$package->setPackageType('php');
$package->clearDeps();
$package->setPhpDep('5.2.0');
$package->setPearInstallerDep('1.9.1');
$package->addPackageDepWithChannel('required', 'MDB2', 'pear.php.net', '1.5.0b4');
$package->addExtensionDep('required', 'mysqli');
$package->addRelease();
$package->generateContents();
$package->setReleaseVersion($version);
$package->setAPIVersion($version);
$package->setReleaseStability($state);
$package->setAPIStability($state);
$package->setNotes($notes);
$package->setDescription($description);
$package->addGlobalReplacement('package-info', '@package_version@', 'version');
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
$package->writePackageFile();
} else {
$package->debugPackageFile();
}