Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Array to string conversion fix #15

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a8ae5bc
RELEASE_1_0_0 => v1.0.0 commit
pylebecq Oct 9, 2010
8d0c066
RELEASE_1_0_1 => v1.0.1 commit
pylebecq Oct 9, 2010
4ca0a3e
RELEASE_1_0_2 => v1.0.2 commit
pylebecq Oct 9, 2010
b8e9166
RELEASE_1_0_3 => v1.0.3 commit
pylebecq Oct 9, 2010
3439b18
RELEASE_1_0_4 => v1.0.4 commit
pylebecq Oct 9, 2010
d1f4e17
RELEASE_1_0_5 => v1.0.5 commit
pylebecq Oct 9, 2010
9bdc131
RELEASE_1_0_6 => v1.0.6 commit
pylebecq Oct 9, 2010
39548c1
RELEASE_1_0_7 => v1.0.7 commit
pylebecq Oct 9, 2010
b825290
RELEASE_1_0_8 => v1.0.8 commit
pylebecq Oct 9, 2010
6ee1dbe
RELEASE_1_0_9 => v1.0.9 commit
pylebecq Oct 9, 2010
ed16212
RELEASE_1_0_10 => v1.0.10 commit
pylebecq Oct 9, 2010
d44c287
RELEASE_1_0_11 => v1.0.11 commit
pylebecq Oct 9, 2010
ffa0454
RELEASE_1_0_12 => v1.0.12 commit
pylebecq Oct 9, 2010
97511d8
RELEASE_1_0_13 => v1.0.13 commit
pylebecq Oct 9, 2010
dc0f671
RELEASE_1_0_14 => v1.0.14 commit
pylebecq Oct 9, 2010
0040d26
RELEASE_1_0_15 => v1.0.15 commit
pylebecq Oct 9, 2010
8843298
RELEASE_1_0_16 => v1.0.16 commit
pylebecq Oct 9, 2010
81a051c
RELEASE_1_0_17 => v1.0.17 commit
pylebecq Oct 9, 2010
a2e9580
RELEASE_1_0_18 => v1.0.18 commit
pylebecq Oct 9, 2010
69369bf
RELEASE_1_0_19 => v1.0.19 commit
pylebecq Oct 9, 2010
7d338ae
RELEASE_1_0_20 => v1.0.20 commit
pylebecq Oct 9, 2010
422852b
RELEASE_1_0_21 => v1.0.21 commit
pylebecq Oct 9, 2010
dff4709
RELEASE_1_0_22 => v1.0.22 commit
pylebecq Oct 9, 2010
98014a6
removed set_magic_quotes_runtime dependancy
Mar 6, 2013
2cd82eb
fixed duplicated constant values for Creole Types causing issues wit…
Mar 7, 2013
9276617
removed old php config directives to support php 5.4
dincho Oct 1, 2013
c896713
removed old php config directives to support php 5.4
dincho Oct 1, 2013
cefe0b1
ob_start php 5.4 compat
dincho Oct 1, 2013
7c66e61
fix array to string convertion in get params
venimus Oct 3, 2013
30c0e52
Merge pull request #1 from dincho/array-get-params
venimus Oct 3, 2013
3eabf9c
updated i18n data
dincho Oct 5, 2013
f33aabd
Fix array to string conversion notice when no selected value is given…
venimus Nov 7, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
128 changes: 128 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
COPYRIGHTS
==========

symfony
-------

symfony is originally based on Mojavi3 by Sean Kerr <sean@code-box.org>

Url: http://www.symfony-project.com/
Copyright: Fabien Potencier
License: MIT - see LICENSE file

Propel
------

symfony contains the Propel software

Url: http://propel.phpdb.org/
Copyright: Authors
License: LGPL - see licenses/LICENSE.Propel file

Creole
------

symfony contains the Creole software

Url: http://creole.phpdb.org/
Copyright: Authors
License: LGPL - see licenses/LICENSE.Creole file

International Components for Unicode
------------------------------------

symfony contains a port of parts of the International Components for Unicode library

Url: http://www.ibm.com/software/globalization/icu/, http://icu.sourceforge.net/
Copyright: 1995-2006 International Business Machines Corporation and others.
License: ICU License - see licenses/LICENSE.ICU file

Dynarch calendar
----------------

symfony contains the dynarch calendar software

Url: http://www.dynarch.com/projects/calendar/
Copyright: Mihai Bazon, 2002-2005
License: LGPL - http://www.gnu.org/licenses/lgpl.html

Prototype
---------

symfony contains the Prototype software

Url: http://prototype.conio.net/
Copyright: 2005 Sam Stephenson
License: MIT - see licenses/LICENSE.prototype file

script.aculo.us
---------------

symfony contains the script.aculo.us software

Url: http://script.aculo.us, http://mir.aculo.us
Copyright: 2005, 2006 Thomas Fuchs
License: MIT - see licenses/LICENSE.script.aculo.us file

famfamfam icons
---------------

symfony contains a subset of the silk famfamfam icons

Url: http://www.famfamfam.com/lab/icons/silk/
License: http://creativecommons.org/licenses/by/2.5/

Prado i18n classes
------------------

symfony contains the Prado i18n core classes

Url: http://www.pradosoft.com/
Copyright: 2004-2006, The PRADO Group
License: BSD - see licenses/LICENSE.prado file

PHPMailer
---------

symfony contains the PHPMailer software

Url: http://phpmailer.sourceforge.net/
Copyright: Chris Ryan
License: LGPL - see licenses/LICENSE.PHPMailer file

Spyc
----

symfony contains the Spyc software

Url: http://spyc.sourceforge.net/
Copyright: 2005-2006 Chris Wanstrath
License: MIT - http://www.opensource.org/licenses/mit-license.php

pake
----

symfony uses the pake software

Url: http://www.symfony-project.com/
Copyright: Fabien Potencier
License: MIT - see licenses/LICENSE.pake file

lime
----

symfony uses the lime software

Url: http://www.symfony-project.com/
Copyright: Fabien Potencier
License: MIT - see licenses/LICENSE.lime file

Phing
-----

symfony contains the Phing software

Url: http://phing.info/
Copyright: Authors
License: LGPL - see licenses/LICENSE.phing file

19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2004-2008 Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 20 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Symfony is a complete framework designed to optimize the development of web applications by way of several key features.
For starters, it separates a web application's business rules, server logic, and presentation views.
It contains numerous tools and classes aimed at shortening the development time of a complex web application.
Additionally, it automates common tasks so that the developer can focus entirely on the specifics of an application.
The end result of these advantages means there is no need to reinvent the wheel every time a new web application is built!

Symfony was written entirely in PHP 5.
It has been thoroughly tested in various real-world projects, and is actually in use for high-demand e-business websites.
It is compatible with most of the available databases engines, including MySQL, PostgreSQL, Oracle, and Microsoft SQL Server.
It runs on *nix and Windows platforms.

LICENSE
-------

see LICENSE file

INSTALLATION
------------

see doc/03-Running-Symfony.txt
67 changes: 67 additions & 0 deletions data/bin/create_sandbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/sh

# creates a symfony sandbox for this symfony version

echo ">>> initialization"
DIR=../`dirname $0`
SANDBOX_NAME=sf_sandbox
APP_NAME=frontend
PHP=php

echo ">>> project initialization"
rm -rf ${SANDBOX_NAME}
mkdir ${SANDBOX_NAME}
cd ${SANDBOX_NAME}

echo ">>> create a new project and a new app"
${PHP} ${DIR}/../../data/bin/symfony init-project ${SANDBOX_NAME}
${PHP} symfony init-app ${APP_NAME}

echo ">>> add LICENSE"
cp ${DIR}/../../LICENSE LICENSE

echo ">>> add README"
cp ${DIR}/../../data/data/SANDBOX_README README

echo ">>> add symfony command line for windows users"
cp ${DIR}/../../data/bin/symfony.bat symfony.bat

echo ">>> freeze symfony"
${PHP} symfony freeze
rm config/config.php.bak

echo ">>> default to sqlite (propel.ini)"
sed -i '' -e "s#\(propel.database *= *\)mysql#\1sqlite#" config/propel.ini
sed -i '' -e "s#\(propel.database.createUrl *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini
sed -i '' -e "s#\(propel.database.url *= *\).*#\1sqlite://./../../../../data/sandbox.db#" config/propel.ini

echo ">>> default to sqlite (databases.yml)"
echo "all:
propel:
class: sfPropelDatabase
param:
phptype: sqlite
database: %SF_DATA_DIR%/sandbox.db
" > config/databases.yml

echo ">>> add some empty files in empty directories"
touch apps/${APP_NAME}/modules/.sf apps/${APP_NAME}/i18n/.sf doc/.sf web/images/.sf
touch log/.sf cache/.sf batch/.sf data/sql/.sf data/model/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/templates/.sf
touch data/symfony/generator/sfPropelAdmin/default/skeleton/validate/.sf
touch data/symfony/modules/default/config/.sf
touch lib/model/.sf plugins/.sf web/js/.sf
touch test/unit/.sf test/functional/.sf test/functional/${APP_NAME}/.sf
touch web/uploads/assets/.sf

touch data/sandbox.db
chmod 777 data
chmod 777 data/sandbox.db

echo ">>> create archive"
cd ..
tar zcpf ${SANDBOX_NAME}.tgz ${SANDBOX_NAME}
zip -rq ${SANDBOX_NAME}.zip ${SANDBOX_NAME}

echo ">>> cleanup"
rm -rf ${SANDBOX_NAME}
116 changes: 116 additions & 0 deletions data/bin/release.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?php

/*
* This file is part of the symfony package.
* (c) 2004-2007 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* Release script.
*
* Usage: php data/bin/release.php 1.0.0 stable
*
* @package symfony
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id$
*/
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeFunction.php');
require_once(dirname(__FILE__).'/../../lib/vendor/pake/pakeGetopt.class.php');
require_once(dirname(__FILE__).'/../../lib/vendor/lime/lime.php');

if (!isset($argv[1]))
{
throw new Exception('You must provide version prefix.');
}

if (!isset($argv[2]))
{
throw new Exception('You must provide stability status (alpha/beta/stable).');
}

$stability = $argv[2];

if (($stability == 'beta' || $stability == 'alpha') && count(explode('.', $argv[1])) < 2)
{
$version_prefix = $argv[1];

$result = pake_sh('svn status -u '.getcwd());
if (preg_match('/Status against revision\:\s+(\d+)\s*$/im', $result, $match))
{
$version = $match[1];
}

if (!isset($version))
{
throw new Exception('unable to find last svn revision');
}

// make a PEAR compatible version
$version = $version_prefix.'.'.$version;
}
else
{
$version = $argv[1];
}

print 'releasing symfony version "'.$version."\"\n";

// Test
$h = new lime_harness(new lime_output_color());

$h->base_dir = realpath(dirname(__FILE__).'/../../test');

// unit tests
$h->register_glob($h->base_dir.'/unit/*/*Test.php');

// functional tests
$h->register_glob($h->base_dir.'/functional/*Test.php');
$h->register_glob($h->base_dir.'/functional/*/*Test.php');

$ret = $h->run();

if (!$ret)
{
throw new Exception('Some tests failed. Release process aborted!');
}

if (is_file('package.xml'))
{
pake_remove('package.xml', getcwd());
}

pake_copy(getcwd().'/package.xml.tmpl', getcwd().'/package.xml');

// add class files
$finder = pakeFinder::type('file')->ignore_version_control()->relative();
$xml_classes = '';
$dirs = array('lib' => 'php', 'data' => 'data');
foreach ($dirs as $dir => $role)
{
$class_files = $finder->in($dir);
foreach ($class_files as $file)
{
$xml_classes .= '<file role="'.$role.'" baseinstalldir="symfony" install-as="'.$file.'" name="'.$dir.'/'.$file.'" />'."\n";
}
}

// replace tokens
pake_replace_tokens('package.xml', getcwd(), '##', '##', array(
'SYMFONY_VERSION' => $version,
'CURRENT_DATE' => date('Y-m-d'),
'CLASS_FILES' => $xml_classes,
'STABILITY' => $stability,
));

$results = pake_sh('pear package');
echo $results;

pake_remove('package.xml', getcwd());

// copy .tgz as symfony-latest.tgz
pake_copy(getcwd().'/symfony-'.$version.'.tgz', getcwd().'/symfony-latest.tgz');

exit(0);
39 changes: 39 additions & 0 deletions data/bin/symfony
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env php
<?php

/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

// project exists?
if (file_exists('config/config.php'))
{
include('config/config.php');
}

if (!isset($sf_symfony_lib_dir))
{
if (is_readable(dirname(__FILE__).'/../../lib/VERSION'))
{
// SVN
$sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
$sf_symfony_data_dir = realpath(dirname(__FILE__).'/..');
}
else
{
// PEAR
$sf_symfony_lib_dir = '@PEAR-DIR@/symfony';
$sf_symfony_data_dir = '@DATA-DIR@/symfony';

if (!is_dir($sf_symfony_lib_dir))
{
throw new Exception('Unable to find symfony libraries');
}
}
}

include($sf_symfony_data_dir.'/bin/symfony.php');
Loading